SEO for single page apps, without the myths.
What Google and AI crawlers actually see when they visit a React, Vue or Angular app, the rendering decision that settles most of it, and seven mistakes that hide pages.
A single page app can rank on Google. Google runs JavaScript, so content your app draws in the browser can be indexed. The catch is that Google renders pages in a second pass, many other crawlers (including the ones behind ChatGPT and Claude) do not run JavaScript at all, and a handful of common app habits quietly hide pages from everyone. If search traffic matters to the app, send real HTML from the server for every page you want found, and treat client-side rendering as the exception rather than the default.
That is the short version. The rest of this guide is the detail: what actually goes wrong, the rendering choice that decides most of it, and the checks we run before an app goes live.
What a single page app actually is, and why search finds it hard
A traditional website sends a finished HTML page every time you click a link. A single page app (SPA) sends one mostly empty HTML shell plus a large JavaScript bundle. The JavaScript then builds the screen in the browser, fetches data, and swaps views without ever loading a new document. React, Vue, Angular and Svelte are the frameworks most people mean when they say SPA.
For a person on a fast laptop, that feels smooth. For a crawler, the first thing it receives is the shell. If you view the source of a typical client-rendered app, you see a title, a script tag and an empty div where the content will eventually go. Everything a searcher would care about, the headings, the copy, the links to other pages, only exists after the JavaScript runs.
Whether that is a problem depends entirely on who is reading.
Does Google index JavaScript content?
Yes, with conditions. Google's own JavaScript SEO documentation describes three phases: crawling, rendering and indexing. Googlebot fetches the raw HTML first. Pages that return a 200 status go into a render queue, where a headless version of Chrome runs the JavaScript, and Google then indexes the rendered result and picks up any links that only appeared after rendering.
Three conditions follow from that, and they are where most apps trip.
- Rendering is a second step. Google says a page can sit in the render queue for seconds or longer. Content in the raw HTML is understood on the first pass. Content that needs JavaScript waits.
- Blocked files are never rendered. If robots.txt blocks the JavaScript or the API the app calls for its content, Google cannot render what it cannot fetch.
- Some responses skip rendering entirely. Google notes that non-200 pages may not be rendered, and that a
noindextag in the original HTML can stop rendering before your JavaScript ever gets a chance to remove it.
So Google can read your app. The honest question is whether it reads it reliably, quickly and completely, and for a client-rendered app the answer is usually "mostly, eventually".
Google is not the only reader any more
This is the part most SPA guides from a few years ago miss, and it has changed the calculation.
When Vercel analyzed AI crawler traffic across its network in The rise of the AI crawler (December 2024), it found that none of the major AI crawlers it measured rendered JavaScript, naming GPTBot, ClaudeBot and PerplexityBot among them. They fetch the JavaScript files and do not execute them. An app that only produces content in the browser is, to those crawlers, an empty shell.
Link previews have a similar blind spot. When someone pastes your URL into a message, an email or a social post, the preview is built from the title, description and Open Graph tags in the raw HTML. If your app sets those with JavaScript after load, many previews show a generic title or nothing useful at all.
If you want your product pages, service pages or help articles to show up when someone asks an AI assistant about your category, the content has to be in the HTML the server sends. That is now a business decision, not a developer preference. We cover the wider topic in how we approach SEO.
The rendering choice that decides most of it
Almost every SPA SEO problem traces back to one decision made early in the build: where the HTML gets produced. There are four realistic options.
| Approach | What the crawler receives | Good fit | Watch out for |
|---|---|---|---|
| Client-side rendering (classic SPA) | An empty shell. Content appears only after JavaScript runs | Logged-in dashboards, portals and internal tools nobody searches for | Anything public you want found. Non-Google crawlers see almost nothing |
| Static generation | Finished HTML built ahead of time for every page | Marketing pages, blogs, docs, product pages that change a few times a day at most | Rebuild times on very large sites, and content that must be live to the minute |
| Server-side rendering | Finished HTML built on each request, then the app takes over in the browser | Catalogues, listings and pages with frequently changing data | Server cost and complexity, and slow pages if data fetching is not cached |
| Dynamic rendering (a separate prerendered copy for bots) | A snapshot served only to crawlers | A stopgap on a legacy app while it is being fixed properly | Google now calls it a workaround and not a long-term solution |
Most modern frameworks let you mix these per route, which is the real answer for most businesses. Next.js for React, Nuxt for Vue, SvelteKit and Angular's own server rendering all support it. The public pages (home, services, products, articles, locations) get static or server rendering. The logged-in app behind them stays client-rendered, because nobody needs Google to index a customer's account screen.
The seven mistakes that hide an app's pages
These are the problems we find when someone asks why their app or JavaScript-heavy site gets no search traffic. Most of them are invisible in a browser, which is why they survive launch.
1. Every view shares one URL, or lives behind a hash
Google indexes URLs, not states. If the pricing view, the features view and the contact view all live at the same address, there is one page to rank and it can only be about one thing. Fragment routes like /#/pricing are no better: Google's documentation says not to use fragments to load different content and to use the History API instead, so each view gets a real path such as /pricing/.
2. Links that are not links
Google only follows <a> elements with an href. A div or button with a click handler that changes the route works fine for a person and leaves a crawler stuck on the page it landed on. Your router's link component should output a real anchor with a real path. View the rendered HTML and check.
3. The same title and description on every page
The shell has one <title>, and unless something changes it per route, every page in the app inherits it. Google says JavaScript can set the title and meta description, and it can, but non-rendering crawlers and link previews only see what the server sent. Set them per route in the server-rendered HTML.
4. Missing pages that return 200
A client-side router often serves the same shell for any URL and then shows a "not found" view. To a crawler, that is a real page with thin content, which Google treats as a soft 404. Google's guidance is to return a genuine 404 status where you can, or failing that, redirect to a URL that does, or add a noindex to the error view. Server rendering makes this easy because the server knows the page does not exist.
5. A noindex the JavaScript was meant to remove
A pattern we see on staging-to-production launches: the shell ships with noindex and the app is supposed to remove it on public routes. Google says that when it sees noindex it may skip rendering, so the removal never runs and the page never gets indexed. If a page should be indexed, the tag must not be in the original HTML. The same logic applies to canonical tags: put the correct one in the HTML and do not let JavaScript change it to something else.
6. Content that waits for a scroll or a click
Crawlers do not scroll through your page tapping tabs. Reviews that load on scroll, specifications hidden behind a tab that fetches on click, and lazy-loaded product grids can all be missing from what gets indexed. Lazy loading images is fine and Google recommends it. Lazy loading the words you want to rank for is not.
7. Stale bundles after a deploy
Google notes that its renderer caches aggressively and may ignore your caching headers, so it can render a page with an old version of your JavaScript. If a deploy renames an API route, Google may render a broken page for a while. Content-hashed filenames (for example main.2bb85551.js) solve this, and most build tools produce them by default. Check that yours does.
How to check whether an app is visible, in fifteen minutes
None of this needs a paid tool.
- View the source, not the inspector. Right click, View Page Source, then search for a sentence you can see on screen. If it is not there, non-rendering crawlers cannot see it.
- Use URL Inspection in Search Console. Inspect a key page, run the live test, and look at the rendered HTML and screenshot. This is what Google actually sees after rendering.
- Run the Rich Results Test on a page with structured data. It also shows the rendered HTML, which is handy when you cannot verify Search Console yet.
- Check the Pages report in Search Console for "Crawled, currently not indexed", soft 404s and duplicate titles. Clusters of these on app routes are the classic SPA signature.
- Search
site:for a deep page. If the home page is indexed and the product or article pages are not, the links or routes are the problem. - Paste a URL into a chat app. If the preview shows the wrong title or a blank card, your meta tags are not in the server HTML.
If those checks raise more questions than they answer, the general diagnosis in why your website is not ranking covers the non-JavaScript causes, which are often the bigger ones.
What about speed?
Single page apps tend to load a lot of JavaScript before anything useful appears, which hurts Largest Contentful Paint on first visit, and heavy client-side work can make taps feel slow, which shows up in Interaction to Next Paint. Server rendering helps the first, trimming the bundle helps both. Speed is a smaller ranking factor than people are told, but on a slow phone on mobile data it decides whether a visitor waits. The thresholds and the free tests are in Core Web Vitals for a small business site.
Should your project be a single page app at all?
This is the question we would rather answer before the build than after it, and it is where a lot of the old "how to build a single page application" advice goes wrong. It treats the SPA as the goal. It is a tool, and it suits some jobs far better than others.
A pure client-rendered SPA is a sensible choice when the product lives behind a login: a booking system for staff, a customer portal, a quoting tool, an internal dashboard. Nobody searches for those screens, and the smooth in-app navigation is the point.
It is the wrong default for a business website, a store, or the public pages of a software product. Those pages exist to be found and to load quickly on any device, and a site built that way gets those for free. If someone has quoted you a React or Vue build for a marketing site, ask how the public pages will be rendered. A good answer names static or server rendering per route. A vague answer is worth pressing on, and the questions to ask any builder are in how to pick a web designer.
And if your product is mostly a marketing site with one interactive feature, a calculator or a booking widget, you rarely need an SPA at all. Build the site as normal pages and add the interactive part as a component on the page that needs it. For a fuller comparison of platforms, see website builder or custom website.
How we build apps that need to be found
When an Ontario business comes to us for a web application, the first scoping question is which screens are public. Those get finished HTML, unique titles and descriptions, a real 404, a sitemap and structured data, exactly like any page on a site we would hand-build for search. The logged-in side gets whatever rendering makes the product fastest to use. We check both in Search Console's live test before launch and again after the first crawl, using the same pre-launch routine in our website pre-launch checklist.
If you are moving an existing client-rendered app to server rendering, treat it like any migration. Keep every URL, or map each old one to its new home with a 301, the same discipline as moving off a closed platform. A rendering fix that changes your URLs can cost you more than it gains.
When not to bother: if the app is internal, if every page needs a login, or if your customers never find you through search, none of this is worth paying for. Spend the money on the product instead.
Building something that has to work as an app and still show up in search? Tell us what it does and who needs to find it. We build websites and web applications from Brantford, with web design in Brantford as our home ground, and every project starts with a fixed quote.
Not inherently. Google renders JavaScript and can index a single page app. The problems come from habits: one URL for many views, links that are not real anchors, the same title on every page, missing pages that return 200, and content that only exists after JavaScript runs. Server or static rendering for public pages removes most of them.
Yes. Google crawls the raw HTML, queues pages that return a 200 status for rendering in a headless version of Chrome, then indexes the rendered result. Rendering is a second step that can be delayed, blocked files are never rendered, and a noindex tag in the original HTML can stop rendering altogether.
React itself is not the issue. A React app rendered only in the browser sends crawlers an empty shell, which Google can usually work through and many other crawlers cannot. React with server or static rendering, for example through Next.js, sends finished HTML and behaves like any well-built website in search.
Often not. Vercel reported in December 2024 that none of the major AI crawlers it measured, including GPTBot, ClaudeBot and PerplexityBot, rendered JavaScript. If you want an AI assistant to find and describe your pages, the content needs to be in the HTML your server sends.
Only as a stopgap. Google now describes dynamic rendering, serving a prerendered copy to bots, as a workaround and not a long-term solution, and recommends server-side rendering, static rendering or hydration instead.