decoded.legal is now free of JavaScript
I don’t know why - i.e. I don’t think I have a particularly good reason for it - but I don’t really like JavaScript.
When I redid the decoded.legal website a few years ago, moving from my original artisan handcrafted html and css to a site generated from Markdown files using mkdocs, I tweaked the theme, but I left the theme’s default JavaScript for the drop-down menu.
Sorting it was a project for another day.
That day was yesterday.
I’m still happy with the static, mkdocs-generated site, but I finally found some time to get rid of the JavaScript, in place of an extra row of links in the footer of each page.
It might not be modern, or slick, but it works. And, if I decide that I really don’t like it, it is easily changed.
Excellent!
Will anyone else notice, or care? I don’t know.
But I will know.
decoded.legal’s home page is now 58.01kB
And, in doing so, I’ve just about halved the page weight: the homepage of decoded.legal is now 58.01kB.
Earlier in the year, I trimmed the fonts from 280kB down to 22kB, so this trimmed off even more.
Now, roughly half the page weight is fonts, and the remainder is css.
Just 3.75kB is actually content.
I quite like MonoRale as the font, but part of me is tempted to ditch it and leave it to whatever is the browser’s default. I don’t care that much about branding.
I’m not sure I want to get rid of the css entirely, as I quite like the way the site looks. But it might be nice to strip down whatever I don’t need from the bootstrap.min.css file some point.
Perhaps I’ve now reached the point of diminishing returns… if I hadn’t reached it already.
You may also like:
- Faffing with fonts to reduce my web page size by two thirds
- Switching back to self-signed certs for freeradius Wi-Fi authentication
- systemctl reboot --firmware-setup
- Am I addicted to being online?
- Fixing folders in Thunderbird if messages do not open in conversation view
- Setting up custom site-specific search shortcuts in Firefox
- In praise of restic (the backup tool)
- Shrinking initrd.img to deal with /boot being too small to upgrade the kernel on Debian
- Increasing the frequency of mqtt messages on power changes in Tasmota using the PowerDelta command
- Fixing iOS Home Assistant 403 error by deleting ip_bans.yaml
- Attempting to stop Microsoft users sending 'reactions' to email from me by adding a postfix header
- Fixing a Chromebook which was showing scam notifications about viruses
- Adding Open Graph meta tags to my hugo static site's theme for nicer fedi link previews
- Working out why Home Assistant on Android had ceased to get my phone's location
- Six months with the Xreal Air 2 Pro glasses