Why this site has no JavaScript
This site is plain HTML with one stylesheet. There is no script on any page, and people sometimes ask why. It is not a protest; it just turned out to be the least work.
Nothing to update
A page written in 2019 still works exactly as it did. There are no packages to upgrade, no build that breaks after a year away, and no security notices to read on a Sunday.
Fast on bad connections
A typical page here is a few kilobytes. It loads in one round trip on a slow mobile network, and it is readable before the stylesheet even arrives.
Features I did not lose
- Dark mode follows the system setting through CSS alone.
- Navigation is just links, so the back button always works.
- The text can be read by screen readers, reader modes and search engines without any extra effort.
When I would add it
If a page needed real interaction (a calculator, a map, a form that checks itself), I would add a small script to that page only. For notes like these, HTML has been enough for thirty years.