Headless CMS Frontend Frameworks
If you want to pick a frontend framework for a headless CMS website, this covers the SPA and MPA options I'd consider and when each one fits. Download the one-page framework comparison (PDF) On a traditional CMS like standard WordPress or Drupal, the frontend is mostly a skin. The CMS owns URL routing, database queries, HTML assembly and page delivery out of the box, and developers style theme…
When considering a frontend framework for a headless CMS website, teams often gravitate towards single-page application (SPA) options like Next.js, even on content-focused sites. This article covers the two primary options: SPA and MPA (multi-page application) architectures, along with their respective strengths and weaknesses.
SPA architectures are characterized by a full-page load that hydrates the page in the browser with a JavaScript runtime bundle. Subsequent clicks load JSON or component payloads, swap the page contents in memory, and update the address bar using the History API. While SPAs offer instant page transitions, instant persistence across page navigations, and access to a vast ecosystem of third-party components, they come with performance drawbacks.
The "hydration tax" leads to higher Interaction to Next Paint (INP) and Time to Interactive scores, while duplicated complexity in routing, state management, auth checks, and analytics tracking can cause memory leaks and ad/analytics issues.
In contrast, MPA architectures work in line with the traditional web model, where each URL is a standalone HTML document, and JavaScript only loads on the pages or widgets that need it. A click on an a link triggers a normal browser navigation to a fresh HTML document, served statically from a CDN or rendered at the edge. This approach provides instant page transitions with no hydration or minimal JavaScript, leading to superior Core Web Vitals and reliable analytics, ad, and accessibility performance.
However, maintaining continuous client-side UI state across page loads can be challenging and may require deliberate workarounds or hybrid islands.
Rewritten by urgent.news; may contain errors — check the original.