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
Want to keep Ubuntu updated? Run these commands on your PC via terminal, or create a .sh file and add the following commands: Bash If you don't know how to create the .sh file, no problem! Just navigate to the folder in your terminal and run the following: touch file.sh ----> creates the file nano file.sh -----> opens the file in the terminal Finally, add the previous commands to the file, press C