Hugo: drastically reduce static blog JavaScript footprint
A Hugo blog loaded 3.6 MB of JavaScript (Mermaid + KaTeX) and 40 KB of external CSS per page, problematic for a text-heavy static site
Published 10sem1 source
Lire en français
≈ 24s
The fact
Enabling HTML minification via hugo.toml reduces weight by 16%, a low-risk first optimization step
Removing render-blocking scripts by selectively loading math and diagram libraries only when needed
Click the link to read an article on the topic: