Islands Architecture

What is Islands Architecture?

Islands Architecture is a frontend pattern that renders the majority of a page as static HTML and treats only specific interactive widgets as isolated, hydrated components. Instead of shipping a full single-page-application, the browser receives an HTML sea with small JavaScript islands. For commerce storefronts the result is far less hydration and a much smaller first-party-JS footprint.

Definition

Frameworks like Astro, Eleventy with Is-land, Fresh on Deno and the Marko ecosystem popularized the pattern, and concepts similar to it appear in Qwik's resumability and in React's RSC plus client components split. The renderer outputs HTML for the whole page and emits hydration scripts only for the components explicitly marked interactive, with directives such as client:idle, client:visible or client:media. Each island hydrates independently, can use any framework (React, Vue, Svelte, Solid) and avoids the global hydration cost that a typical SPA pays on first load.

Why it matters

On commerce sites, most of the markup is static for any given session: header, footer, breadcrumbs, hero, copy blocks, category descriptions, SEO content. Only a handful of components really need to be interactive, like add-to-cart, variant picker, mini-cart and filters. Islands match that reality and convert it into measurable wins on INP and time-to-interactive. They also simplify performance budgeting because the cost of each island is visible and bounded. CLS improves too, because static markup is delivered fully formed and only the islands move within reserved containers.

Use cases

Editorial-heavy parts of a headless-commerce storefront, like landing-page funnels, brand pages, blog content and help centers, are excellent fits for Islands Architecture on Astro or Fresh. Teams pair this with a content-management-system-cms like Hygraph or Sanity, deploy through Cloudflare Pages, Netlify or Vercel and reach near-perfect Core Web Vitals out of the box. For deeper commerce flows, islands can wrap mini-cart, currency switcher, search overlay and recommendation-engine widgets while the rest stays static. The pattern is also a natural progression for teams using React Server Components, since RSC essentially formalizes the same idea inside the React ecosystem.

Explore Composable Headless Frontend · Performance and Core Web Vitals.

Frontend Insights