Skip to content
quarry View Ticket
Login

View Ticket

Serve the stylesheet and sprite as cacheable assets instead of inlining them

Closed93cb0f581661275bd2cdfffd9cd49a8d78aba202Created 91.5 days agoUpdated 67.9 days ago
Description2026-08-31 11:53:49
Every page carries 112,118 bytes of inline <style> and 13,377 bytes of inline SVG sprite — 125,495 bytes, 40% of the 309,584-byte timeline page — byte-identical on every request and, being inline, impossible to cache separately. The JS assets already get Cache-Control: public, max-age=86400; the CSS gets none of that.

Split measured on the timeline page: shared css+sprite 125,495 raw / 23,995 gzipped; page-specific 184,089 raw / 32,898 gzipped.

Serve as /assets/quarry.<contenthash>.css and a sprite asset, immutable with a long max-age. On repeat views that is zero bytes rather than merely fewer, which beats any compression setting.

Scope note: this is the biggest win for ORDINARY navigation and a small one for the heavy pages — the same 125KB is only ~5% of a 2.3MB btree.c page.

Acceptance: pages reference hashed asset URLs; a content change yields a new URL; repeat navigation refetches neither; no flash of unstyled content.

2026-09-01 01:11:38

Deferred. Half of this shipped: the stylesheet is served content-hashed and immutable (max-age=31536000). The sprite is still inlined — 28 symbols, 13,377 bytes on every page — and extracting it is the remaining work, deferred rather than dropped.