3 ms·
Last time I compared Katex to MathJax, I was also very pleased by Katex's synchronous rendering support, as compared to mathjax. In CoCalc.com I made it use Ka
by williamstein 6y ago
Last time I compared Katex to MathJax, I was also very pleased by Katex's synchronous rendering support, as compared to mathjax.
In CoCalc.com I made it use Katex, but if there is an error it falls back to MathJax.
- raphlinus 6y agoMathJax can do synchronous also, but it's a config option. The fact that it defaults to async really saddles it with the perception that it's incredibly slow. The async operation basically forces the browser to through many, many rounds of relayout, when in most cases it would be much more efficient to do it in one batch.
- webmaven 6y ago> In CoCalc.com I made it use Katex, but if there is an error it falls back to MathJax. What % of Katex's rendering attempts fail over to MathJax?
- williamstein 6y agoI don't track that, but based on last time when I broke the fallback... it is important to have the fallback. There are cases where MathJax can handle input that is technically not valid in modern latex, and the katex devs explicitly decide not to support that input. My users don't care and have lots of content that works in mathjax only, so I have to support it (since Jupyter compatibility is important, and Jupyter uses mathjax).