Headless WordPress: when it pays off and when it is overengineering
Separating WordPress from the presentation layer always sounds good in a pitch: a faster front end, a modern tech stack, content available to any channel. The cost discussion usually stops at hosting and developer hours and skips the item that in practice decides whether the project succeeds: the editorial team’s work after launch. Headless WordPress takes responsibility for how the site looks away from the CMS and moves it to a separate application, but together with the look it also removes some of the mechanisms editors used every day. Below you will find what exactly stops working, where the overlooked cost lies, why such an implementation is not automatically faster, and the criteria that show when it is overkill for a given project.
What separating the CMS from the front end means
In a classic implementation, WordPress receives a request, builds the page from the theme and templates, and returns finished HTML. In the headless variant, WordPress returns only data, through the REST API or a GraphQL layer, and a separate application, most often in Next.js, builds the page from it and serves user traffic. The admin panel stays the same. What changes is who renders the content.
The consequence is two applications, two deployment environments and one contract between them. The contract is a set of assumptions about what data the API returns and in what structure. As long as nobody breaks it, everything works. However, any change in the CMS that adds a new content type or a new block breaks it, because the front end does not know how to display it.
How content is delivered is the first and most important architectural decision. The simplest option is to fetch the ready HTML that WordPress generates from blocks and inject it into the page. It is quick to launch, but the front end then has no control over how content elements look. The second option is to parse the block structure and map each type to an application component. It gives full control and is by far the most expensive. The third option drops blocks altogether and bases content on structured fields, which is convenient for the developer and most restrictive for editors.
What stops working on switch-over day
Post preview stops working by default, and this loss is felt immediately. The preview button in WordPress leads to an address handled by the theme, which no longer exists. Restoring preview requires a separate, authenticated channel: in Next.js this is done with draft mode, in which a separate endpoint verifies a secret, sets a cookie that bypasses the cache and allows unpublished content to be fetched. It works well, but it is a separate element to design, implement and maintain, not an out-of-the-box feature.
The second loss is plugins that generate their own front end. Contact forms, search, breadcrumbs, related posts, galleries, maps, calculators: anything that used to render through a shortcode or a plugin block ceases to exist. The data stays in the database, but nobody displays it. Each such element has to be rebuilt in the front-end application or handled by an external service.
The third loss concerns caching. WordPress cache plugins work at the level of HTML generation, which no longer happens, so they become useless. Their role is taken over by the revalidation mechanism in the front-end application and the CDN layer, which is an efficient solution, but configured by hand and requiring a decision about how long the site may show outdated content.
The fourth area is SEO. The SEO plugin still lets editors enter a title and description, but it does not insert them into the page code, because the front end generates the code. The sitemap generated by the plugin points to addresses that do not match the addresses in the new application. Social media tags and structured data have to be generated on the front end from data fetched from the API. None of this is difficult, but all of it has to be done deliberately, because missing elements do not show up as an error, only as a drop in visibility a few weeks later.
The cost that is missing from the quote
Mapping blocks to components is the most frequently underestimated item in the whole project. Editors are used to a set of a dozen or several dozen blocks, including plugin blocks and custom blocks based on custom fields. Each of them needs a component in the front-end application that covers all the setting variants editors actually use: alignment, width, background colours, button variants.
The practical problem is worse than the cost itself. If an editor inserts a block that has no component, the application does not show an error, it simply renders nothing. Publishing goes through, everything looks correct in the panel, and part of the content is missing from the page. That is why the minimum safeguard is to limit the block palette in the editor to supported blocks and to add a fallback component that flags unsupported blocks in the test environment.
The second hidden cost is maintaining the boundary between the systems. A WordPress update can change the structure of API responses, a front-end framework update can require rewriting how data is fetched, and every change to a plugin that adds fields has to be mirrored on the other side. This is ongoing work, spread over the entire life of the website, and it usually exceeds the cost of hosting two applications.
The third is synchronisation failure. Publishing content usually triggers a page refresh via a webhook. If the webhook does not arrive, editors see the published post in the panel, while the site still shows the old version. Without monitoring this mechanism and without a way to force a refresh from the panel, every such event ends with a ticket for a developer.
Why headless is not automatically faster
The performance argument is the most common justification for such a project, and it is only conditionally true. A front-end application that generates pages statically and serves them from a CDN is very fast, because the user receives a ready file from an edge server. The same application rendering every visit on the server and fetching data from an overloaded WordPress is slower than a classic implementation with page caching and a CDN, because it adds another network hop.
Classic WordPress with properly configured server-side caching also serves ready HTML and can also sit behind a CDN. There is a difference in time to first byte between a well-configured classic implementation and a static one, but it is smaller than pitches usually suggest, and for most company websites it does not translate into business results.
The real performance advantage concerns the interface layer, not the server: an application built from components allows precise control over what is loaded and when, so it is easier to achieve good interactivity and layout stability scores than in a theme wrapped in several plugins. This argument is true, but it is about the quality of the implementation, not the architecture itself.
There is also the other side of the equation: GraphQL on top of WordPress lets you fetch exactly the fields you need instead of the full objects returned by REST. For lists with many items, the difference in response size and preparation time is significant, so the choice of data access layer has a greater impact on performance than the fact of separating the systems.
When such an implementation pays off
The first justified case is an existing front-end application with which the website is to share components and a design system. If the company already has a customer portal or a configurator in React, building the content site as a second application in the same stack is cheaper to maintain than keeping a separate theme that duplicates the same components.
The second is publishing the same content to several channels: the website, a mobile app, screens at points of sale, an internal intranet. Separating the layers makes sense then, because the API is genuinely used by more than one consumer, which is its intended role.
The third is an interface that goes beyond what can be built in a theme: advanced filtering with instant results, data visualisations, editors, product configurators. There the limitation is no longer the look but the logic in the browser, and full control over the front end stops being a matter of preference.
The fourth case is organisational: the team knows React and does not know PHP, and the editors do not want to change a CMS they have learned. Keeping the panel and moving the front end to a stack the team knows is then a decision about skills, not technology, and it can be the right one.
When it is overengineering
The strongest signal is the budget. A project in which block mapping, preview mode, forms, search and the SEO layer all have to be built from scratch does not fit into a budget intended for a good theme, and trying to squeeze it in ends with a launch without content preview and without half the blocks.
The second signal is the nature of the website. A few pages updated once a quarter do not need a separated architecture, because there is no problem here for it to solve. The third is a lack of access to front-end developers over the next few years. An application without maintenance ages faster than a theme, because framework dependencies require regular updates.
The fourth signal is a website built on plugins with their own front end, and a store with a cart and payments. The WooCommerce checkout is the most sensitive part of a store, wrapped in payment and shipping extensions that render their own views. Rewriting it on the front end is possible, but it moves the risk to an area where an error means lost orders.
How to verify the decision before implementation?
A prototype is cheaper than changing course halfway through a project, but only if it tests the right thing. Fetching a post through the API proves nothing on its own, because it is the simplest element of the whole setup. The steps below verify what actually generates risk.
- List all block types used in existing posts from the panel, together with their setting variants. This list is the basis for estimating the mapping work and is usually longer than the team remembers.
- Build a prototype covering the three most complex templates on the site, not the home page. The home page is always the easiest, because it is designed by hand.
- Enable preview of unpublished content in the prototype and test it from an editor’s account, not an administrator’s. Permissions are a common source of problems that only surface in production.
- Ask an editor to publish a post from scratch without instructions or developer help, then measure how long it took and how many elements did not render correctly.
- Simulate a refresh failure: publish a change with the webhook disabled and check whether editors have a way to force an update without contacting the technical team.
Summary
Headless WordPress is a good solution for a specific set of problems: a shared design system with an existing application, publishing to multiple channels, an interface beyond what a theme can do, and a team working in a JavaScript stack. In these situations the cost of maintaining the boundary between systems is justified, because it solves a real limitation.
Outside them, the numbers usually do not add up, and the biggest single risk is not the technology but the editorial process. A panel the editors know loses its value if they cannot see the result before publishing and half the blocks do not render on the page. So it is best to decide after a prototype that covers a full publication by an editor, not after a pitch showing the load time of the home page. If you are considering this architecture and want to estimate the real scope of work for your website, book a free consultation.
FAQ
Headless WordPress – frequently asked questions
Is headless WordPress faster than a classic implementation?
Only in a specific configuration. An application that generates pages statically and serves them from a CDN is very fast, but classic WordPress with server-side caching and a CDN also serves ready HTML. An application that renders every visit on the server and fetches data from an overloaded CMS can be slower.
Which WordPress features stop working after the layers are separated?
Post preview, all plugins that generate their own front end, including forms, search and breadcrumbs, cache plugins, and inserting SEO tags into the page code. The data stays in the database, but nobody renders it.
Do editors still use the block editor?
Yes, the panel stays the same. The condition, however, is building a front-end component for every block in use. A block without a component will not cause an error, it just will not appear on the page, so it is worth limiting the block palette to supported blocks.
Can WooCommerce run in this architecture?
Technically yes, but the checkout process, wrapped in payment and shipping extensions, has to be rewritten on the front end. The risk is then moved to the most sensitive part of the store, so for a standard store it is usually not justified.
REST API or GraphQL?
A GraphQL layer lets you fetch exactly the fields you need instead of full objects, which significantly reduces response size and preparation time for lists with many items. For simple, infrequent queries, the REST API is enough and does not require an additional plugin.
What budget should you plan for such a project?
The scope includes mapping all blocks in use, content preview mode, recreating front-end plugin features, the SEO layer and the refresh mechanism, plus ongoing maintenance of two applications. If the budget matches the cost of a good theme, this scope will not fit into it.
Did you like this article?