Step-by-Step: Migrating from Node.js 21 to Bun 1.2 for Your Backend APIs Why Migrate to Bun 1.2? Bun 1.2 is a modern JavaScript runtime built for speed, offering native TypeScript support, a built-in bundler, test runner, and package manager. Compared to Node.js 21, Bun delivers up to 3x faster startup times, lower memory usage, and seamless compatibility with most Node.js APIs. For b
My Hugo blog was downloading 3.6 MB of JavaScript and 40 KB of external CSS on every page load. For a static blog with mostly text and a few diagrams, that was absurd. Here is how I fixed it. HTML: 86 KB JavaScript: 3.6 MB (Mermaid + KaTeX) CSS: 40 KB (KaTeX stylesheets) Problem: render-blocking scripts loaded on every page for math and diagrams Adding minifyOutput = true to hugo.toml shrunk HTML