arslan.dev
Jun 10, 2026 · meta, web, typography

Sidenotes, previews, and other quiet machinery

This post exists to exercise the reading machinery: margin sidenotes, hover previews, and embedded images. None of it is required to read the words — that's the whole point.1

Sidenotes are the good kind of footnote. On a wide screen the note floats into the margin next to its reference, so you can read it without losing your place. They borrow both margins — left and right — so several notes in the same passage can each sit beside their own mention instead of piling up in a single column.

The idea is old. Edward Tufte popularized it for the web, and gwern.net refined the mechanics: notes that reflow as the window changes, and collapse gracefully when the screen is too narrow to spare a margin.2

On a narrow screen, or with JavaScript off, the very same notes simply appear at the bottom as ordinary footnotes — nothing is lost, and a 1999 browser renders it fine.3

Hover previews are a separate idea, and they're compiled at build time rather than fetched live. A link to the Wikipedia article on hypertext carries a small card; so does a paper like Attention Is All You Need.

Internal links — say, the quiet demo on the other side — pull their card straight from the post index, with no network round-trip at all.4

Images work too, and zoom on hover:

The Metroid Prime logo

That's the whole demo. Delete this file whenever real posts arrive.

Footnotes

  1. Progressive enhancement: the page is readable first, and the niceties layer on top only where the browser and viewport allow. ↩

  2. The pattern is Edward Tufte's, popularized in Tufte-CSS and adapted by gwern.net. ↩

  3. This footnote is proof — resize the window narrow (or disable JS) and watch it slide back to the bottom of the article. ↩

  4. The preview metadata for internal links comes straight from posts.json; external links (Wikipedia, arXiv) are resolved once at build time and cached, so the published pages stay fast. ↩

← all posts