Articles / 14 August 2025 ยท 1 min read

A site with almost no JavaScript

What I kept, what I dropped, and what I replaced with plain CSS.

This site uses JavaScript for three things: search, the copy button and the PDF reader. Everything else is HTML and CSS.

What CSS does now#

  • Filtering the list of all work uses radio buttons and the :has() selector.
  • The reading bar at the top of an article uses a scroll timeline.
  • Moving between pages uses a view transition, a one-line opt-in.

What I would not do in CSS#

Search. It needs an index and a keyboard, and JavaScript does that well.

The test#

Turn JavaScript off. The site should still read, link and filter. Only the PDF reader and search need it, and the PDF reader leaves a download link behind.

Arrow keys to move, Enter to open, Esc to close.