4 ms·
The animations also stood out to me. I took a look at the source to see if they used a library or were written completely by hand and was surprised to see that
by re 3y ago
The animations also stood out to me. I took a look at the source to see if they used a library or were written completely by hand and was surprised to see that they were entirely CSS-based, no JavaScript required (although the "metadata" overwrite animation is glitched if you disable JS, for some reason not immediately apparent to me).
- bhaney 3y ago> for some reason not immediately apparent to me The CSS that sets the background of the code elements (so they properly cover up the ones under them) is attached to the hljs class, which is added to those elements by highlight.js. No JS > no classname added > no background style > jank
- tavianator 3y agoThanks for pointing this out to me! I'll see if I can pre-render the syntax highlighting like I do with KaTeX and stuff. No reason to do that on the client.