|
|
|
|
|
by joppy
1489 days ago
|
|
For pages with lots of mathematics markup, it is far better (in terms of download size) to send the latex markup and the katex library to the browser, and render it there. I tried rendering the mathematics server-side using katex on my own website a while ago, and the div soup generated by katex takes up loads of space. Original page (compressed): 10 kB Page with server-rendered Katex (compressed): 50 kB Katex.js (compressed): 80 kB So after two pages it’s a net win to not render the mathematics server-side. |
|