-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Collapsible content and lazy loading / rendering. #2206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @novaknole , I m trying to answer those questions above based on current docsify behaviors.
Nope, docsify render the single
Simply, markdown supports it already. i.e. Click meHow to make it collapsibleUsing
|
Hi @novaknole. Have you considered breaking your "quite long" pages into separate pages and/or leveraging the sidebar for efficiently navigating between sections on each page? This seems like the most obvious solution. Collapsable content is available today as described in @Koooooo-7's comment above. As for lazy-loading sections of page, this may help with performance issues when loading unusually long pages but it would introduce a number of new issues to consider. My initial reaction is that tackling these issues would add quite a bit of complexity to the page rendering process. Since page rendering performance is not something we hear Docsify users complain about much, I don't see this feature being prioritized any time soon. For now and the foreseeable future, I think your best option is to revisit your "quite long" pages and break them up into smaller, more manageable content blocks. |
Feature request
Problem or desire
I have been writing some docs for my own use case. The library is amazing. Though I need ideas.
Some pages are quite long, so I got tired of scrolling to get to the bottom of the page. You might say that I can create other pages and separate them, but I don't want it. I need to have it on the same page.
I got 2 things I want to find a way about:
I would love to have the following: some collapsibles such as you go to the page, and you see 15 collapsibles and clicking on each of them shows the contet later. I couldn't find anything through docsify, so I did it with my own html/css and some javascript and I solved the problem about "scrolling too long". But it's ofc still slow.
Proposal
Isn't there some way that I got collapsibles, though, whatever is hidden behind it is not loaded on the page load and only loaded once clicked ? This way, performance will be much better. Thoughts ?
The text was updated successfully, but these errors were encountered: