You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.
What logic or plug-in is used to control the Table of Contents while scrolling?
This becomes very slow with relatively short pages already:
4100 words
~30 headings
host: any browser on latest-generation apple silicon
The page gets perfectly responsive as soon as toc: false is set in the Frontmatter.
The browser's Developer Tools showed that this is controlled used scroll events -- that would explain the performance issue. A way to solve that is to convert the TOC control to polling.
The text was updated successfully, but these errors were encountered:
I suppose this is an effect of combining scrollspy with several echarts pages. Your post shows that scrollspy with long static content still works. My long page with echarts and without scrollspy works.
I understand the scrollspy logic is not your own, and it's embedded in the monolithic theme.js file which is entangled with other logic as well. If that file is generated from somewhere, and we can find the origin of the scrollspy logic in isolation -- I'm happy to look into it and offer a patch (e.g. sampling, or polling).
Otherwise, I guess we can live it at that and close this issue. It'll be a motivator to stay concise :)
What logic or plug-in is used to control the Table of Contents while scrolling?
This becomes very slow with relatively short pages already:
The page gets perfectly responsive as soon as
toc: false
is set in the Frontmatter.The browser's Developer Tools showed that this is controlled used scroll events -- that would explain the performance issue. A way to solve that is to convert the TOC control to polling.
The text was updated successfully, but these errors were encountered: