Hacker News new | ask | show | jobs
by amathstudent 4294 days ago
What choices did you make that make KaTeX faster than MathJax? (i.e. 'how is it done?')
1 comments

There's a lot of choices. We support a smaller subset of browsers and outputs (only IE8+, only HTML+CSS, no SVG), so we gain some speed there. We also try to push as much of the calculation into CSS as possible, so that the native browser does as much work as possible, instead of the javascript. MathJax does a lot more manual positioning.