How MathJax works ?
Lagrida opened this issue · comments
Lagrida commented
Hi, I have a question and suggestion.
First i thank all the work team for that great job.
My question : How MathJax work ? if for example i have
My Suggestion : MathJax version 3 transform all Latex codes to mathematic formulas in the same time, then if we have a heavy page with a lot of LaTeX codes, then the page take lot of time to display mathematic formulas, i suggest to start rendring formulas from the top to bottom.
applecuckoo commented
Davide P. Cervone commented
My Suggestion : MathJax version 3 transform all Latex codes to mathematic formulas in the same time, then if we have a heavy page with a lot of LaTeX codes, then the page take lot of time to display mathematic formulas, i suggest to start rendring formulas from the top to bottom.
MathJax v3 has a lazy-typesetting extension that typesets only the math that is currently showing, and typesets additional math when it comes into the viewport. That should make pages with lots of mathematics render more quickly. See
https://github.com/mathjax/MathJax-src/releases/tag/3.2.0#lazy
for more information. Version 2 did use the approach you suggest, but it has some drawbacks as well. The lazy typesetting feature seems to be the best solution at this point.
Davide