How we kept first-paint LCP under 1.5s
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:
- Per-route CSS ≤ 50 KB and JS ≤ 150 KB.
- Home HTML (brotli) ≤ 40 KB; list and detail pages ≤ 80 KB.
- Mobile LCP ≤ 2.5s, CLS ≤ 0.1, INP ≤ 200ms.
Interactivity is layered in as islands, hydrated only when needed.