Website & Development
What Is a Single Page Application (SPA)? Benefits and SEO Risks
Copy for AI
A single page application (SPA) loads one page, then swaps content with JavaScript.
After the first load, it doesn’t fetch a brand-new page for every click.
You technically stay on one page while the display changes.
The verdict: a SPA behaves like an app inside your browser, smooth and without reload flicker. But on a public B2B site it can hide your content from Google and AI.
Below: how a SPA works, why it looks appealing but can hurt discoverability, and when it’s the right choice for a B2B company.
What exactly is a single page application?
A web app that loads one HTML document and redraws it with JavaScript.
MDN defines it as an app that “loads only a single web document, and then updates the body content of that single document via JavaScript APIs” such as Fetch.
How a classic website loads
On a classic website, your browser requests a completely new document from the server for every page.
Each click means a full round trip and a full redraw.
How a SPA loads
With a SPA, that happens only once.
Here’s the sequence:
- The browser fetches a base document, the app shell.
- It downloads a bundle of JavaScript.
- The JavaScript builds the first screen in the browser.
- On each click, the app fetches only the data it needs and redraws.
Navigating feels faster, because there’s no full reload anymore.
Where the catch sits
The content isn’t in that first document.
It’s only built after the JavaScript has run.
That distinction, where and when the page is built, separates a SPA from a static or server-rendered website.
You can see it yourself.
Open a page, right-click and choose “View page source”:
If the body holds little more than an empty container and script tags, the content is built client-side.
Which frameworks build SPAs?
SPAs are typically built with a front-end framework such as React or Vue.
Those frameworks run on JavaScript.
Building one falls under website development.
What are the benefits of a SPA?
A smooth, app-like experience. For the right type of product, the upsides are genuine:
- Smooth user experience. Screens switch without reloading, which feels like a real application.
- Less server load per click. After the first load, the app only retrieves data, not an entire page every time.
- Rich interaction. Ideal for interfaces with a lot of dynamism, filters, real-time updates or complex forms.
For example, think of a configurator that recalculates a price on every choice, or a dashboard with live filters.
These benefits are real, but they mostly count for app-like interfaces.
For an information and lead website, they weigh less than the drawbacks.
Watch out: a large JavaScript bundle can make the first load slower, even if later clicks feel instant.
Our guide to Core Web Vitals shows how Google measures that.
Why is a SPA a risk for SEO and AI discoverability?
Because a SPA’s content only appears after JavaScript runs.
A visitor or bot that skips that step sees a nearly empty page.
Google renders, but in a queue
Google can process JavaScript, but in phases: crawling first, then rendering, then indexing.
Google itself says a page “may stay on this queue for a few seconds, but it can take longer than that”.
That second step can bring delays and errors.
You can read more about those pitfalls in JavaScript rendering problems for SEO.
Status codes and links break easily
With client-side routing, it’s also hard to return correct HTTP status codes.
A missing page can still answer with a 200, which Google sees as a soft 404.
Links are the second trap.
Google only discovers links that are <a> elements with an href.
Rule of thumb: use real URLs through the History API, not fragments like #/products. Our guide to crawlability covers the rest.
Most AI crawlers don’t run JavaScript
The second, growing problem is AI.
Many AI crawlers and assistants don’t execute JavaScript.
Vercel analysed AI crawler traffic on its network and found that “none of the major AI crawlers currently render JavaScript”. That includes OpenAI’s bots and ClaudeBot.
The volume isn’t small: GPTBot logged 569 million fetches and Claude 370 million in one month on Vercel’s network alone.
They do fetch JavaScript files: 11.50% of ChatGPT’s requests and 23.84% of Claude’s.
But they don’t run them, so they can’t read client-side rendered content.
Here’s what each crawler gets from the same SPA:
What that costs a B2B site
If your entire site runs on client-side rendering, those bots see none of your content.
You disappear from AI answers.
That’s exactly why AI website builders that lean on heavy JavaScript score poorly for AI search.
Our deep dive on client-side rendering and AI search shows the pattern.
For B2B, where visibility directly feeds your conversion rate, that’s a real danger.
Not sure what AI tools see on your site?
Run it through the AI visibility checker.
How do you keep a SPA discoverable?
Render the content on the server or ahead of time, so the HTML is filled before JavaScript runs.
The solution isn’t “never build a SPA”.
It’s choosing the right rendering, so you keep the smooth experience without losing discoverability.
Your rendering options
Google recommends to “use server-side rendering, static rendering, or hydration”.
It calls dynamic rendering “a workaround and not a long-term solution”.
Here’s how the options compare:
| Approach | What the first request returns | SEO and AI fit | Best for |
|---|---|---|---|
| Client-side rendering | An empty shell plus JavaScript | Weak | Apps behind a login |
| Server-side rendering | Full HTML per request | Strong | Pages with fresh data |
| Static rendering (pre-rendering) | Full HTML built ahead of time | Strong | Content and lead sites |
| Hydration | Full HTML, then JavaScript takes over | Strong | App-like public pages |
| Dynamic rendering | Different HTML for bots | Workaround only | Legacy fixes |
Our guide to server-side rendering for SEO explains the setup.
For framework-specific advice, see JavaScript framework SEO.
What we do on our own site
Our setup: customerimpact.be is built with Astro and ships pre-rendered HTML. The text of every content page is in the first response, before any script runs.
Field data stays healthy too.
Here’s our own mobile result in PageSpeed Insights:
PageSpeed Insights field data for customerimpact.be on mobile, October 2026. LCP passes at 1.9 s; CLS at 0.13 still needs work.
Pre-rendering doesn’t make every metric perfect.
But it removes the JavaScript dependency for content.
Check your own pages with the website speed test.
Let crawlers in, too
Rendering only helps if bots may read the page.
Our robots.txt has one rule for all crawlers:
Our own robots.txt, October 2026: one rule for all crawlers, so every AI bot, training and search, may read the site.
Our guide on whether to allow AI crawlers helps you decide per bot.
When is a SPA the right choice for B2B?
When you’re building an application behind a login, not a public lead website.
Usually not for a lead website
For a classic B2B website whose main job is to bring in leads, a pure SPA is usually not the best choice.
You buy complexity and SEO risk without needing the app-like interaction.
A fast, server-rendered or largely static platform generally serves a B2B website that generates leads better.
Yes for portals and dashboards
A SPA does pay off as soon as you’re truly building an application, such as:
- a customer portal
- a booking system
- a configurator
- an internal dashboard
There, fluid interaction is the core of the product.
Discoverability via Google matters less, because users sit behind a login.
A hybrid often works best
A common pattern combines both: a pre-rendered public site plus an app on a subdomain.
A headless CMS can feed the public part.
Rule of thumb: choose based on what you’re building.
Public content and leads should be discoverable; a closed application may well be a SPA.
Frequently asked questions
What is the difference between a SPA and a regular website?
A regular website fetches a new document from the server for every page. A SPA loads once and then updates its content dynamically with JavaScript, without fully reloading.
Is a SPA bad for SEO?
Not by definition, but it is if the content is only built client-side. With server-side rendering or pre-rendering, a SPA stays perfectly discoverable.
Can an AI assistant read my SPA?
Only if your content sits in the HTML. Many AI crawlers do not execute JavaScript, so a purely client-side SPA is often invisible to them.
Do I need a SPA for my company website?
Usually not. For a content and lead website, a faster, more discoverable approach is often wiser. A SPA makes sense for a portal or dashboard.
How do I check whether my site is a client-side SPA?
Open “View page source” in your browser. If the body holds an empty container and script tags but none of your text, the content is rendered client-side.
Not sure whether a SPA suits your site?
A wrongly chosen SPA costs you visibility on Google and with AI, exactly where your leads come from.
We pick the rendering based on your goal, often as AI-ready website development.
Your content always stays discoverable.
Contact us and we’ll tell you within 24 hours whether your current setup hides content from crawlers.
Free website scan
Enter your website and get an automatic scan within minutes, with concrete technical and SEO improvements. No sales pitch.
We only use your details for your scan. No spam, unsubscribe anytime.