opensi·si

How we kept first-paint LCP under 1.5s

Engineering · 2026-10-10

Server-rendered HTML, route-scoped CSS, and islands: the performance budget behind the site.

Keeping first paint fast

Every route ships its own page-<route>.css, so the first paint never waits on JavaScript.

We hold three budgets:

  1. Per-route CSS ≤ 50 KB and JS ≤ 150 KB.
  2. Home HTML (brotli) ≤ 40 KB; list and detail pages ≤ 80 KB.
  3. Mobile LCP ≤ 2.5s, CLS ≤ 0.1, INP ≤ 200ms.

Interactivity is layered in as islands, hydrated only when needed.

All Posts