logoalt Hacker News

joppyyesterday at 9:25 AM4 repliesview on HN

The commenter says pre-rendered/server-side-rendered mathematics (via katex) is great - I’ve found the opposite. It’s probably great if you have an article with one or two equations. On the other hand, if you have an article which uses mathematics pervasively, like many pure mathematics articles, it quickly becomes far more space efficient to render the mathematics on the client side. You can quickly get 200kB+ pages by pre-rendering.


Replies

Galanweyesterday at 10:14 AM

My experience with dynamically rendered math has been the opposite: if you have lots of equations to render, it inevitably takes some milliseconds to render, which makes the whole content move around and shake as rendering takes places.

show 4 replies
lifthrasiiryesterday at 10:19 AM

KaTeX weighs about the same if you do care about those metrics, however.

show 1 reply
djoldmanyesterday at 10:02 AM

Could you please provide an example?

adastra22yesterday at 10:48 AM

Is 200kB supposed to be a lot?