Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What choices did you make that make KaTeX faster than MathJax? (i.e. 'how is it done?')


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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: