# SPA SEO

> SPA SEO is making a single-page application discoverable in search. See how Google renders JavaScript, crawlable links, status codes, and routing fixes.

Canonical: https://scaplet.com/glossary/spa-seo

Glossary Glossary · SPA SEO

SPA SEO is making a single-page application discoverable in search. See how Google renders JavaScript, crawlable links, status codes, and routing fixes.

3 min

read

3

sources

Oct 21, 2026

updated

Scaplet Editorial Team

author

In one line

SPA SEO is the work of making a single-page application discoverable and indexable in search. Google renders JavaScript with an evergreen Chromium, so SPAs can be indexed, but you must use real URLs, crawlable links, meaningful status codes, and unique titles. Google still recommends server-side or pre-rendering, since it speeds up pages and not all bots run JavaScript.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fspa-seo%20(%22SPA%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fspa-seo%20(%22SPA%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fspa-seo%20(%22SPA%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fspa-seo%20(%22SPA%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 5 parts, 3 minutes.

1. [Why SPAs are different 01](#why-spas-are-different)
2. [Fixes that matter most 02](#fixes-that-matter-most)
3. [Handle error views 03](#handle-error-views)
4. [Rendering choice 04](#rendering-choice)
5. [Check it in 2 minutes 05](#check-it-in-2-minutes)

_01_Explained

## Why SPAs are different

A single-page application loads one HTML shell and uses JavaScript to swap content as the user moves around. Google's [JavaScript SEO](/glossary/javascript-seo) guide says some sites use the app shell model, where the initial HTML does not contain the actual content and Google needs to execute JavaScript before it can see the page content.

Google processes JavaScript web apps in three phases: crawling, [rendering](/glossary/rendering), and indexing. [Googlebot](/ai-crawlers/googlebot) queues all pages with a 200 [status code](/glossary/http-status-codes) for rendering, unless a [robots meta tag](/glossary/robots-meta-tag) or header says not to index the page. A headless Chromium then renders the page when Google's resources allow, and the rendered HTML is what Google indexes. The wait can be a few seconds or longer.

_02_At a glance

## Fixes that matter most

Problem

### Fragment URLs such as `#/products`

What Google says

Googlebot can't reliably resolve fragment URLs

Fix

Use the History API so each view has a real path such as `/products`

Problem

### Click handlers instead of links

What Google says

Google can only crawl `<a>` elements with an `href`

Fix

Use `<a href>`; JavaScript may still handle the click

Problem

### Every route returns 200

What Google says

Client-side routing can make real status codes impractical, causing soft 404s

Fix

Redirect to a URL that returns 404, or add `noindex` to error views

Problem

### One title for every view

What Google says

Unique descriptive titles help users pick the result

Fix

Set `<title>` and meta description per route; JavaScript is allowed

Problem

### Canonical changed by script

What Google says

Don't change the canonical to something other than the HTML's value

Fix

Set it in the HTML, or set it only once in JavaScript

_03_Check it

## Handle error views

Google's docs give two strategies to avoid soft 404 errors in client-side apps: redirect with JavaScript to a URL where the server answers 404, such as `/not-found`, or add a `noindex` robots meta tag to the error view with JavaScript.

Redirect approach from Google's docs

```
fetch(\`/api/products/${productId}\`) .then(response => response.json()) .then(product => { if (product.exists) { showProductDetails(product); } else { window.location.href = '/not-found'; // server returns 404 } });
```

_04_Explained

## Rendering choice

Google says server-side or pre-rendering is still a great idea because it makes your website faster for users and crawlers, and not all bots can run JavaScript. Google's docs say dynamic rendering, where a server detects bots and serves them a server-rendered version, was a workaround and not a long-term solution, and recommend server-side rendering, static rendering, or hydration instead.

Whether you need it depends on the content. Pages behind a login don't need to rank. Public pages that must rank are the first candidates for server-side or static output.

_05_How it works

## Check it in 2 minutes

1. 1

### Inspect a live URL

Paste a route into the [URL Inspection tool](/glossary/url-inspection-tool) and open the rendered HTML.
2. 2

### Look for your content

Confirm the headline, body text and links appear in the rendered HTML, not just in the shell.
3. 3

### Check the links

View source or the DOM and confirm navigation uses `<a href>` with real paths.

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- google.com

1. 01 [Understand JavaScript SEO basics](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics) developers.google.com · checked 2026-10-25
2. 02 [Link best practices for Google](https://developers.google.com/search/docs/crawling-indexing/links-crawlable) developers.google.com · checked 2026-10-25
3. 03 [Dynamic rendering as a workaround](https://developers.google.com/search/docs/crawling-indexing/javascript/dynamic-rendering) developers.google.com · checked 2026-10-25

Questions

## Asked a lot.

4 questions people ask next, answered from the sources on this page.

_01_ Can Google index a single-page app?

Yes. Google runs JavaScript with an evergreen version of Chromium and indexes the rendered HTML, but the page may wait in the rendering queue.

_02_ Should I use hash URLs in a SPA?

No. Google says don't use fragments to load different page content, because Googlebot can't reliably resolve them. Use the History API.

_03_ Is server-side rendering required for SPA SEO?

Not strictly, but Google still recommends server-side or pre-rendering because it makes the site faster and not all bots can run JavaScript.

_04_ How do I avoid soft 404s in a SPA?

Redirect to a URL that returns a 404 status, or add a noindex robots meta tag to error views with JavaScript.

## Keep learning

[All glossary](/glossary)

[Learn Server-side rendering Crawling and indexing](/glossary/server-side-rendering) [Related Soft 404 Crawling](/glossary/soft-404) [Read next JavaScript SEO Crawling and indexing](/glossary/javascript-seo) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Search snippet](/glossary/snippet) [Soft 404](/glossary/soft-404) [Google spam policies](/glossary/spam-policies) [Speculation rules](/glossary/speculation-rules)

More in Crawling and indexing
[Nofollow](/glossary/nofollow) [noimageindex](/glossary/noimageindex) [Noindex](/glossary/noindex) [Orphan page](/glossary/orphan-page) [Page indexing report](/glossary/page-indexing-report) [Pagination](/glossary/pagination) [Removals tool (Search Console)](/glossary/removals-tool) [Rendered HTML](/glossary/rendered-html) [Rendering](/glossary/rendering) [Robots meta tag](/glossary/robots-meta-tag) [Server-side rendering](/glossary/server-side-rendering) [Sitemaps report](/glossary/sitemaps-report) [SPA SEO](/glossary/spa-seo) [SSL certificate](/glossary/ssl-certificate) [SSR vs CSR](/glossary/ssr-vs-csr) [Subdomain vs subdirectory](/glossary/subdomain-vs-subdirectory) [Trailing slash in URLs](/glossary/trailing-slash) [unavailable_after](/glossary/unavailable-after) [URL fragment](/glossary/url-fragment) [URL Inspection tool](/glossary/url-inspection-tool) [URL parameters](/glossary/url-parameters) [URL structure](/glossary/url-structure) [User agent](/glossary/user-agent) [Video sitemap](/glossary/video-sitemap)

Terms on this page
[JavaScript SEO](/glossary/javascript-seo) [Rendering](/glossary/rendering) [HTTP status codes](/glossary/http-status-codes) [Robots meta tag](/glossary/robots-meta-tag) [URL Inspection tool](/glossary/url-inspection-tool)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
