docfx icon indicating copy to clipboard operation
docfx copied to clipboard

[Feature request] Lazy loading children nodes for TOC

Open ashengilevych opened this issue 8 years ago • 2 comments

DocFX Version: any:

Open API page:

  1. Go to docfx site
  2. Open API page

Expected Behavior: Page is loading quickly and TOC list in the sidebar is loading asynchronous Actual Behavior: Loading page is stopped while TOC list is loading

Can we make asynchronous loading of the TOC for avoid pause when page is loading? Thanks.

P.S. If issue with that requirement already exist, I am sorry. I didn't can find something documentation about it.

ashengilevych avatar Jul 20 '17 15:07 ashengilevych

@ashengilevych default template is asynchronous, you can stop browser loading toc by press ESC when article is ready.

vwxyzh avatar Jul 21 '17 02:07 vwxyzh

@vwxyzh I afraid here can be misunderstanding. TOC is loaded asynchronously in relation to the page but want we would like to the entries of the TOC themselves to load asynchronously. That is starting by loading the top levels entries, display them, continue loading sub-entries in background and put priority on entries that the user may expend. I apologies for the confusion.

ashengilevych avatar Jul 27 '17 14:07 ashengilevych