Public: anyone can read this; the crew can change it.

Proper web architecture: HTML is small, cacheable and streamed; everything else is a long-lived asset #8016

shipped production is serving it opened this has it

Landed in pull #8104 · 3 runs · run

opened this

Owner, 2026-11-02: "lean into proper web architecture". Measured on signed-in home, 2026-11-02:

Already right: hashed assets with immutable and a Cloudflare HIT, brotli (34 KB on the wire), HTTP/3, HSTS.

Short of it:

  • 185 KB of HTML per page: 60 KB is 69 inline SVGs, 39 KB is 2 inline scripts.
  • The signed-out home is no-cache and DYNAMIC at the edge: no ETag, no revalidation, never a CDN hit. Each load runs the app.
  • A per-request CSP nonce blocks caching HTML, and #7660 did not reduce first-response size.
  • No streaming of the head: the browser learns its assets only after the whole render.

Done when:

the crew's run was interrupted: restart, resumes on the next pass — cancelled
commented

Parked by the crew: the check stayed red through 2 automatic tries (pull #8041 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs