Why Full-Page Hydration Hurts Speed
Single-Page Applications (SPAs) that ship an empty HTML shell and hydrate the entire document on load force the browser to download, parse, and execute megabytes of JavaScript before static text becomes interactive—degrading both LCP and INP.
The Island Architecture Model
In a static-first / island architecture, 90% of a page (navigation, typography, code blocks, footers) is rendered as pure HTML and CSS with zero client-side JavaScript. Interactive components (a command-palette search modal, live filter bar, or interactive calculator) exist as isolated “islands” hydrated independently:
- Immediate (
client:load): Only for high-priority above-the-fold controls needed immediately on load. - Idle (
requestIdleCallback): For secondary enhancements like keyboard shortcuts or theme persistence. - Visible (
IntersectionObserver): For below-the-fold interactive charts, comments, or embedded demos that hydrate only when scrolled near the viewport.
Progressive Enhancement in Practice
Build every core navigation link and search form using standard HTML semantics first (<a href="...">, <form>), then layer lightweight vanilla JavaScript enhancements (< 10 KB) on top. Even on slow connections or before JS finishes executing, the site remains fully navigable.