While Single Page Application frameworks simplify interactive UI state management, content-driven sites often incur heavy JavaScript payload costs.

Island Architecture addresses this by serving the document layout and static prose as standard HTML, reserving client JavaScript solely for components that require active interactivity.

1. Selective Component Hydration

Instead of reconstructing the entire page component tree on the client:

  • Static headers, footers, and article bodies download as zero-JavaScript HTML.
  • Interactive widgets (e.g. search bars and language toggles) hydrate independently.
  • While reducing baseline bundle sizes, cross-island state synchronization requires intentional design using custom events or external stores.

2. Combining with Static Site Generation

When implemented with static generators like Astro, this model reduces initial main-thread contention. Practical metrics such as LCP and CLS remain dependent on asset optimization and third-party script management.