
Why Single-Page Apps Are Invisible to AI Crawlers
Most AI crawlers don't run JavaScript, so client-rendered React and Vue pages look empty to them. How to test yours and fix rendering and accessibility.
Single-page apps built with React, Vue, or Angular are often invisible to AI crawlers because most AI bots don't execute JavaScript before reading a page. They request the HTML, get an almost-empty <div id="root"></div>, and move on.
If your content only appears after the browser runs a bundle of JavaScript, tools like ChatGPT Search and Perplexity may never see a single word of it. The same rendering choices can also cause accessibility failures, from route changes a screen reader never announces to headings that shift depending on which component rendered. If your React app ranks fine in Google but never shows up in a ChatGPT answer, this is the first thing to check.
Why can't AI crawlers read client-side rendered JavaScript pages?
Most AI crawlers are built to fetch pages fast and cheap, across huge numbers of URLs. Running a full headless browser for every page, which is what it takes to execute React and wait for content to render, is expensive at that scale. So bots like OpenAI's GPTBot and PerplexityBot generally fetch raw HTML only. They work more like quick text fetchers than browsers: no JavaScript execution, no waiting for a fetch call to resolve, no hydration. Some crawlers render selectively, and some give up before a slow bundle finishes.
When your SPA ships an empty shell and lets client-side JavaScript build the real content, the crawler sees the shell. Nothing else. It's like walking into a store before the stock truck arrives, except the truck never arrives, because the crawler already left.
Nothing warns you when this happens. Your site doesn't get flagged as broken, and there's no error in your logs. The crawler finds nothing worth citing, moves on, and your page just never shows up in the answer.
Googlebot is the one major exception, and even that comes with caveats. Google renders pages with a version of Chromium in a second pass: it fetches the HTML, queues the page for rendering, and comes back later to index what actually painted. That rendering is resource-limited, and Google's own documentation acknowledges a rendering queue that can delay indexing. None of it helps ChatGPT, Claude, or Perplexity, which run their own crawlers.
What's actually happening under the hood with client-side rendering?
In a client-side rendered (CSR) app, the server sends a minimal HTML document, often just a script tag and an empty container, and the browser does the heavy lifting. JavaScript downloads, parses, runs, fetches data from an API, and injects the real content into the DOM. That's great for building interactive apps. It's rough for anything that reads a page without running JavaScript.
Here's roughly what a crawler sees when it requests a typical CSR page:
<html>
<body>
<div id="root"></div>
<script src="/static/js/main.a1b2c3.js"></script>
</body>
</html>
No headline. No product description. No pricing table. No FAQ content. Just a script tag pointing to a bundle the crawler isn't going to run. View source on a purely client-rendered React app and this is what you'll find.
For a person on a modern browser with JavaScript turned on, none of this shows. The page just appears. But for anything that reads raw HTML instead of running a full browser engine, that first response is the only thing that exists: no content, no structure, no text to parse. That isn't a flaw in React or Vue. It's that client-side rendering, by default, hands over an empty shell and assumes something downstream will finish the job.
Server-side rendering (SSR) flips the order. The server builds the full HTML and sends a complete page on the first request, then JavaScript "hydrates" it to add interactivity. A crawler that skips JavaScript still gets the real content, because it was there before any script ran.
Is this worse for AI search than it is for Google SEO?
Yes, generally. Even with Google's rendering step, SPA content can get indexed late, indexed partially, or missed entirely. AI crawlers are newer and leaner, and most of them skip rendering altogether.
That means a React app that ranks acceptably in classic Google search can be completely absent from a Perplexity citation or a ChatGPT Search result, because those tools are reading a different, unrendered version of your site. This is the core idea behind AI readability: it isn't enough for content to exist in the browser. It has to exist in the raw response a crawler actually fetches.
It's also a quieter failure than a WCAG violation. Nobody files a complaint. You just stop appearing in answers you should be winning. A team with a React or Vue marketing site can easily assume SEO is "handled" because Google indexed the homepage, then check an AI answer engine and find no mention of their brand for queries they should own. When that happens, start with rendering.
How do you know if your React app isn't being indexed or read by AI?
Run a quick test before assuming anything. Three checks show you what a non-rendering crawler gets:
- View source, not DevTools. Right-click and choose "View Page Source" (not "Inspect"), then search for a sentence from your main body text. If your headline, body copy, and key text aren't in that raw HTML, a non-rendering crawler won't see them either.
- Disable JavaScript and reload. Chrome DevTools lets you turn JavaScript off entirely. If the page is blank or shows a spinner forever, that's your answer.
- Fetch the URL with curl or a simple HTTP request. Compare what comes back with what you see in the browser. A large gap between the two is the smoking gun.
The curl check takes one line. If it prints nothing, the text you searched for isn't in the raw HTML, which means JavaScript is injecting it:
curl -s https://www.example.com/pricing | grep -i "a sentence from your page"
For a deeper walkthrough of testing against ChatGPT's crawler behavior specifically, there's a step-by-step guide to free tests that check whether ChatGPT can read your site.
What actually fixes client-side rendering for AI crawlers?
The fix is to make sure meaningful content exists in the initial HTML response, before any JavaScript runs. The fix guide on server-rendered content for AI crawlers covers the check itself. There are a few solid ways to get there, and they're not all equal in effort or payoff.
Server-side rendering (SSR)
SSR renders your React or Vue components on the server for each request, sending fully formed HTML to the browser and to crawlers. Frameworks like Next.js, Nuxt, and SvelteKit handle this well out of the box. It's generally the strongest option for content that changes often: product pages, blog posts, anything with a CMS behind it. The trade-off is build complexity, since you now need a rendering server that a plain CSR app doesn't.
Static site generation (SSG)
SSG pre-builds HTML at deploy time rather than per request. It's faster to serve than SSR and just as crawler-friendly, but it's a better fit for content that doesn't change every few minutes: marketing pages, documentation, landing pages. For content-heavy pages, static generation at build time is often the simplest, fastest option. Next.js, Gatsby, and Astro all support it.
Dynamic rendering (the workaround, not the fix)
Dynamic rendering, sometimes called prerendering, detects when a request comes from a bot and serves it a pre-rendered HTML snapshot, while regular users still get the full CSR app. Tools like Prerender.io or Rendertron handle this. It works, and it can buy time for a team that can't migrate yet. But it's a patch layered on top of the underlying problem, and it adds infrastructure you now have to maintain and keep in sync with your live app. We'd treat it as a stopgap while you move to real SSR or SSG, not a permanent architecture.
Hybrid rendering
Most modern frameworks now support per-route rendering: SSR for dynamic pages, static generation for stable ones, and CSR for behind-the-login app sections that don't need to be crawled at all. This is usually the most practical setup for a real production site.
| Approach | First HTML response | Crawler visibility | Best for |
|---|---|---|---|
| Pure CSR | Empty shell and script tags | Poor: most AI crawlers see nothing | Internal dashboards, logged-in app views |
| SSR | Full content, built on each request | Strong: full HTML on every request | Frequently updated content, e-commerce |
| SSG | Full content, built at deploy time | Strong: full HTML, pre-built | Marketing pages, docs, blogs |
| Dynamic rendering | Snapshot for bots, shell for people | Moderate: depends on bot detection accuracy | Legacy apps mid-migration |
| Hybrid | Depends on the route | Strong on routes that use SSR or SSG | Sites that mix public pages and app views |
Does fixing rendering also help with WCAG accessibility?
It helps, but it doesn't finish the job. Screen readers depend on a DOM built from real semantic elements, not a blank container waiting on JavaScript. When you move from pure CSR to SSR or SSG, you're usually forced to think about real heading structure, real <a> tags instead of clickable <div> elements, and content that exists without a script running. Those are core WCAG requirements too. The WebAIM Million, which tests the home pages of the top one million websites each year, lists missing form input labels, empty links, and empty buttons among the most common errors it detects. Those are problems with how elements are built, not how they look. Fixing what crawlers get and fixing what screen reader users get are closer to one project than they look.
Neither CSR nor SSR is automatically WCAG compliant, though. SSR solves the "nothing to read" problem, but you can still ship an SSR app with broken focus management, missing alt text, or poor color contrast. SSR fixes access. It doesn't fix the problems layered on top.
Why do React and Vue SPAs fail WCAG checks?
Screen readers and other assistive tech work from the accessibility tree, a structured map of the DOM that the browser builds. In an SPA, JavaScript keeps rewriting the DOM, and unless your code tells assistive tech what changed, it may never find out. Four failure patterns stand out:
- Route changes that don't announce themselves. On a traditional multi-page site, following a link loads a new page, and a screen reader announces the new title. In an SPA, client-side routing swaps content without a real page load, so the screen reader may say nothing. The user has no idea anything changed.
- Focus doesn't move. After a route change, focus needs to move to the new content's main heading or main landmark. If it doesn't, keyboard and screen reader users are left on a nav link that no longer makes sense in context.
- Dynamic content updates silently. Cart totals, form validation messages, and search results update through JavaScript all the time. Without
aria-liveregions, screen readers never announce the change, which is the problem WCAG 4.1.3 (Status Messages) addresses. There's a deeper look at live regions and dynamic content failures if you need it. - Heading structure built in JavaScript state, not HTML. Components get reused across routes, so it's easy to end up with duplicate H1s, or heading levels that skip around depending on which component tree rendered. Audits flag that under WCAG 1.3.1 (Info and Relationships).
How do you fix accessibility in a single-page app?
Getting content into the first HTML response comes first. After that, check which of these your framework or router already handles, and build the rest into the app yourself. Browsers won't do it for you the way they do on a full page load.
- Manage focus on every route change. Once the new view renders, move focus to its main heading or a skip-target element with JavaScript. It tackles the most direct reason screen reader users get lost in an SPA.
- Add
aria-liveregions around anything that updates dynamically: cart counts, search result counts, form errors, loading states. Without them, sighted users see the change and screen reader users get nothing. - Audit your heading structure per route, not just per component. A reused header component can add a second H1 to every page, on top of the page's own title. Check what actually renders on each route, not what the component file says. The guide to fixing heading order covers the rule itself.
The first two fixes look roughly like this:
// Run after the router renders the new view
const heading = document.querySelector('main h1');
heading.setAttribute('tabindex', '-1'); // lets script move focus to a heading
heading.focus();
<!-- Screen readers announce text changes inside this element without moving focus -->
<p id="cart-status" aria-live="polite">Item added to your cart</p>
One thing we'd push back on: it's tempting to reach for an accessibility overlay widget as a quick patch for SPA issues, but it won't fix them. Overlays run on top of the rendered DOM using JavaScript, the same layer that's already failing to communicate reliably with crawlers and assistive tech. They can't fix a content-access problem, because they're built on top of it.
This overlap is what AccessKnight scans for: one scan checks a page against its WCAG rules and separately scores whether AI crawlers can parse and cite your content, with code-level fixes for each failure rather than a JavaScript patch layered on top.
What about Next.js, Nuxt, and other meta-frameworks?
If you're starting a new project, this decision is mostly made for you. Next.js (React), Nuxt (Vue), SvelteKit (Svelte), and Remix all default to server rendering or static generation rather than pure client-side rendering, so real content lands in the first HTML response.
If you're on an older Create React App project with no rendering strategy, migrating to Next.js is usually the highest-leverage fix available. It's not a small lift for a large app, but it solves the crawler visibility problem at the root instead of bolting on a workaround. Afterward, check which of the focus, live-region, and heading fixes above the framework handles, and build the rest.
Key Takeaways
- AI crawlers like GPTBot and PerplexityBot generally don't execute JavaScript, so content that only exists after client-side rendering is invisible to them.
- Googlebot renders JavaScript, but on a delay, and its rendering does nothing for ChatGPT, Claude, or Perplexity.
- View page source (not DevTools) or disable JavaScript to see what a non-rendering crawler actually gets.
- Server-side rendering and static generation are the durable fixes. Dynamic rendering is a stopgap, and overlay widgets aren't a fix at all.
- SSR doesn't make an SPA accessible on its own. Focus management on route changes,
aria-liveregions, and per-route heading checks still have to be built in.
Where to go from here
Don't guess which category your app falls into. Open view-source on your homepage, your main product or service page, and your pricing page, and search each one for the text you care about most. If it isn't in the raw HTML, that's your starting point: not a redesign, just a rendering fix on the routes that matter most for search and AI visibility. Then run a free AccessKnight scan on those same URLs to see which pages AI crawlers can read today, which ones ship blank shells, and which WCAG checks each one fails.
Frequently Asked Questions
Do you need to rewrite your whole React app to fix this?
Not necessarily. If you're on Create React App or a similar pure-CSR setup, migrating to Next.js is usually less disruptive than a full rewrite, since you keep your component logic and mainly change how pages are rendered and routed.
Can Google index a single-page app without SSR?
Usually, eventually. Google renders JavaScript pages in a headless version of Chromium, but rendering runs on a queue, and complex apps with heavy API calls or client-side routing can end up only partly indexed. Relying on it is risky for anything business-critical.
Will AI crawlers ever start rendering JavaScript like Google does?
Some may add limited rendering over time, but you can't count on it. Running full headless browsers is expensive at crawler scale, and fixing the problem on your end is cheaper and fully in your control.
Is dynamic rendering (Prerender.io style) a safe long-term solution?
It's workable but fragile. It makes a good stopgap, because bots get a rendered snapshot without a framework migration, but you're maintaining a separate pipeline that has to detect bots correctly and stay in sync with your live app.
How can you tell if AI tools like ChatGPT are citing your site right now?
Ask ChatGPT Search or Perplexity a question your page should answer and see whether your domain shows up in the citations. If it doesn't, and your rendering is client-side only, check rendering first.
Does React automatically fail WCAG compliance?
No. React is a rendering library, and it doesn't violate any WCAG rule by itself. Failures come from how the app is built, such as no focus management on route changes, missing live regions, or inconsistent headings across components.
Does server-side rendering fix all accessibility problems in an SPA?
No. SSR gives screen readers and crawlers real HTML on the first load, but it doesn't fix missing alt text, poor color contrast, unlabeled form fields, or broken keyboard navigation. Those still need their own fixes.
Fix guides for this topic
Step-by-step fixes with copy-paste code for the checks this article covers.
- Key content missing from the server-rendered HTMLAI readability
- Page missing or empty titleWCAG 2.4.2 · Level AW3C: Understanding 2.4.2
Check your website's accessibility
Scan against all 33 WCAG 2.1 rules and get code-level fix suggestions — free.
Run a free scan →