Skip to content
Oleksii Ditchuk.

Single Page App SEO: How I Make JavaScript Sites Indexable

How Google crawls and renders single page apps (SPA SEO), the checks I run on React and Next.js sites, and the fixes that make content indexable.

By Oleksii DitchukUpdated 11 min read

Magic lantern projecting stacked glass slides into one picture on a small screen
In this article

Single page app SEO, often shortened to SPA SEO, is the work of making sure search engines can crawl, render and index content that a JavaScript framework builds in the browser. Google handles such pages in three phases: it crawls the URL, puts the page in a queue for rendering, and indexes what the rendered page contains. That queue can take seconds or longer, links only count when they are real anchor elements with an href, and content that appears only after a click never reaches the index. Some AI crawlers do not render JavaScript at all (Step 5 has the data). So on React, Vue or Next.js sites I check three things first: every view has its own URL, links are crawlable, and the main text, links and metadata are in the HTML the server sends. Then I compare the raw and rendered page for each template, fix what is missing, and move important content to server-side rendering or static generation.

Key takeaways

  • Crawl the site without JavaScript first. That is what every crawler gets before rendering.
  • Content created on click is invisible to Google. Render it on the server and collapse it with CSS.
  • Every view needs its own URL, an anchor link with an href, its own title, canonical and status code.
  • Server-side rendering or static generation serves Google and crawlers that do not run JavaScript at once.

I checked the Google, Chrome, Meta and framework documentation cited in this post on December 5, 2026.

What is a single page app, and is it bad for SEO?

Google’s Analytics documentation describes single page apps as “websites that load an HTML document once and fetch any additional content using JavaScript APIs”. React, Vue and Angular are common frameworks for building them, which is why React and Angular sites are often called SPAs. When a visitor clicks a link, the framework swaps the content and updates the URL in the address bar without loading a new document.

SPAs can rank. The risk is client-only rendering: when the first HTML response is an empty app shell, every crawler depends on a render step to see the content. Angular’s rendering guide says Angular ships applications as client-side rendered by default and that this “may negatively affect search engine optimization (SEO), as search crawlers have limits to how much JavaScript they execute when indexing a page”. So every SPA SEO audit I run starts with one question: does the server send the content, or does the browser build it?

How Google processes a single page application

Google’s JavaScript SEO basics describe three phases: crawling, rendering and indexing. Googlebot fetches the URL and reads the links in the HTML. Then the page waits in a render queue. Google says it “may stay on this queue for a few seconds, but it can take longer than that”. After rendering, Google indexes what the page shows without any interaction.

Two conditions decide whether a page reaches that queue. Google queues pages that return a 200 status code; for a 404 or another non-200 code, rendering might be skipped. A robots meta tag or header that says noindex also keeps the page out of the queue, so a script that removes noindex after load never runs for Google.

Three practical rules follow from this:

What Google needs What breaks it in a SPA What I ask developers for
A URL per view Routes in URL fragments (#/pricing) History API routing with real paths
Crawlable links Click handlers on div or button elements <a href="/path"> for every internal link
Content without interaction Text created only after a click or scroll Text in the DOM on load, collapsed with CSS

Google’s own link guidelines say it can only reliably extract URLs from anchor elements with an href attribute.

Step 1. Crawl the site without rendering first

My first crawl of any JavaScript site runs with rendering switched off and a Googlebot user agent. That shows what every crawler receives before any script runs. When I joined Wave.video as SEO Lead in July 2022, my first crawl fetched 13,166 URLs that way. The main templates already carried their text in the raw HTML: a median of 1,512 words across 778 blog posts and 875 across 1,476 video template pages, with no empty titles or H1s. That ruled out the biggest templates as a rendering problem. Then I crawl again with rendering on and compare the two, template by template: word count, headings, links, title, canonical and structured data.

At a B2B contact-center outsourcing company, this comparison covered 10 templates, and raw and rendered HTML matched on all of them. One service page raised a flag: its collapsed FAQ blocks held 45 words in the raw HTML and 352 after rendering. The totals pointed to a harmless cause. The page had 1,738 words in both versions, and the FAQ schema with the answers was in the raw HTML too, so the extra 307 words in the FAQ blocks most likely sat elsewhere in the raw markup until a script placed them in the collapsed blocks after load. Either way, the answer text was in the HTML the server sent, before any script ran. I read a flag like that together with the total word count and the structured data before I send anything to developers.

What I compared on the flagged service page Raw HTML Rendered HTML
Words in the collapsed FAQ blocks 45 352
Words on the whole page 1,738 1,738
FAQ structured data Present Present

For a single URL, I use URL Inspection in Search Console:

  1. Paste the full URL into the inspection bar at the top of Search Console.
  2. Click “View crawled page” to see the HTML of the version Google indexed and the HTTP response.
  3. Click “Test live URL”, then “View tested page”. The screenshot shows what Google’s renderer drew, and “More info” lists the loaded resources and JavaScript output.
  4. Search the HTML for a sentence from the main text, the canonical and a few internal links. If a sentence is missing there, Google indexed the page without it.

Google’s help page says the screenshot is available only in a live test. My technical SEO audit checklist lists the other checks I run on each template.

Step 2. Find content that appears only after a click

Google does not interact with the page when it renders it: no clicks, no scrolling. Anything a framework creates only when a visitor opens an accordion, a tab or a “show more” list does not exist for Google.

On an affiliate review site built on Next.js, the FAQ accordions rendered only the questions. The answer element was created on click, so 5,916 words across 36 of the site’s 43 pages were missing from the raw HTML and appeared only after a click. The hub page had the same problem: only 10 cards were in the DOM, and “show more” built the rest in the browser, so Google never saw the other entries. The fix I specified for both was the same: render all of the content on the server and collapse it with CSS. Visitors see the same page, and crawlers get the full text.

36 / 43

pages had text that existed only after a click

5,916 words in FAQ answers and "show more" blocks were missing from the raw HTML.

  • 36 pages with click-only text (84%)
  • 7 pages without (16%)
Affiliate review site built on Next.js, crawl with click expansion, August 2026.

A list that loads more items through a script often leaves those items without a crawlable path. At a custom software development company, the blog’s paginated pages loaded the same 12 posts: page 10 of 27 showed exactly what page 1 showed, because the script that filled the list sent the same request on every page and ignored the page number. The pages I opened, including page 27, all carried the same list, so in the raw HTML and the browser view I checked, the archive pages added nothing for crawlers. I describe how that ties into indexing problems in my post on Crawled - currently not indexed.

The rules I give developers:

  • every view that should rank has its own path, built with the History API, without fragments;
  • internal links are <a href> elements, even when a router handles the click;
  • paginated and filtered lists have server-rendered pages with links between them;
  • infinite scroll gets a paginated fallback with real URLs.

In React the difference is one element. A click handler on a span works for visitors and gives crawlers nothing to follow. A link component renders a real anchor (Next.js shown here):

// Crawlers cannot follow this
<span onClick={() => navigate('/pricing')}>Pricing</span>

// Renders <a href="/pricing">, which crawlers follow
<Link href="/pricing">Pricing</Link>

Step 4. Set metadata, status codes and canonicals per route

In a SPA the server often returns the same HTML shell for every URL, with the same title and a 200 status. Google’s JavaScript guide calls out soft 404s in single page apps: when a route does not exist, the app should redirect to a URL that returns a 404, or add a noindex robots tag. Each indexable route needs its own title, description, canonical and structured data in the server response.

Frameworks help, but they also make it easy to hardcode things. On the Next.js affiliate site, the canonical in one page template still pointed to the old domain after a migration, and in an earlier migration hardcoded hostnames had left the sitemap listing URLs on the old domain. The rule I set for the next domain rollout: the sitemap is generated per hostname, and nothing is hardcoded to a domain. Next.js also sends 308 for permanent redirects, which Google treats like a 301.

Step 5. Choose how the content gets rendered

There are four common setups:

Approach What the first HTML response contains When I recommend it
Client-side rendering An app shell, content comes later Logged-in app screens that should not rank
Server-side rendering Full content on every request Pages that change often or per user
Static generation Full content built ahead of time Marketing pages, docs, blog
Dynamic rendering Full content only for bots Avoid; Google describes it as a past workaround

Google’s page on dynamic rendering says “Dynamic rendering was a workaround and not a long-term solution for problems with JavaScript-generated content”, and recommends server-side rendering, static rendering or hydration instead.

Moving an existing client-side app to server or build-time rendering does not have to mean a rewrite. Each major framework documents a path:

  • React with Next.js: pages render on the server or at build time, and a static export with output: 'export' generates one HTML file per route for hosting without a server.
  • Vue with Nuxt: Nuxt uses universal rendering by default, so the server returns a fully rendered HTML page. Vue’s SSR guide suggests static generation when only a handful of marketing pages need search traffic.
  • Angular: ng add @angular/ssr adds server and hybrid rendering. By default Angular then prerenders the whole application, and each route can be set to server, client or prerender mode.

Services that serve a prerendered copy only to bots work the way dynamic rendering does, so I treat them as a stopgap while the framework change is scheduled.

AI crawlers add another reason. Vercel’s analysis of crawler traffic, published in December 2024, found that OpenAI’s GPTBot, OAI-SearchBot and ChatGPT-User, Anthropic’s ClaudeBot, Meta-ExternalAgent, Bytespider and PerplexityBot did not render JavaScript. The same study reported that Gemini uses Googlebot’s infrastructure for full JavaScript rendering and that AppleBot renders JavaScript through a browser-based crawler. I found no newer study, and I could not confirm that OpenAI, Anthropic or Perplexity document their crawlers’ rendering. If a page’s main text appears only after rendering, the crawlers that do not render cannot read it from the HTML they fetch.

Routing in the browser also changes what other tools see. After the rendering fixes I check three things:

  • Analytics. Without virtual page views, GA4 counts a whole visit as one page. Google’s SPA measurement guide recommends enhanced measurement with “Page changes based on browser history events” for apps that use the History API. If tags run through Google Tag Manager, the same guide says to leave that option off, because it can double-count page views.
  • Core Web Vitals. Route changes used to leave the metrics tied to the URL of the first page load. Chrome 151 added soft navigation APIs, and since October 2026 CrUX publishes experimental soft navigation metrics that Chrome aims to move out of experimental status in May 2027, according to web.dev’s SPA FAQ. Other browser engines still measure full page loads only, so I read a SPA’s standard CrUX numbers as numbers for the first page of each visit.
  • Link previews. Meta’s crawler documentation asks for Open Graph properties within the first 1 MB of the response and content its crawler can fetch within a few seconds. I put Open Graph tags, the title and structured data in the server HTML, so preview bots and search crawlers read the same values.

Step 7. Hand the fixes to developers

JavaScript SEO fixes live in the code, so developer time is the real budget. At Justin Alexander, a bridal fashion brand on an older jQuery site where development priorities came first, I ranked the fixes by expected impact and about 60% of them shipped. I also checked every release for SEO regressions, because one template change can undo a fix across thousands of URLs. The details are in the Justin Alexander case. At Wave.video the crawl above had ruled out the large templates, so my work with the developers covered the smaller parts of the React front end that Googlebot could not reliably crawl; the wider program is in the Wave.video case.

What makes these requests easy to ship: one issue per ticket, the affected template and example URLs, what Google receives now and what it should receive, and a test the developer can run before release.

JavaScript rendering is one part of my Technical SEO Audit: $500, fixed, with results in 7 to 10 business days, including the raw and rendered comparison for each template. If you run a SaaS product on React or Next.js, my SEO for SaaS page covers the wider work.

Oleksii DitchukSEO consultant

Technical SEO Audit

Crawling, indexing, rendering, speed, AI-bot access

$500See the audit

FAQ

Is React bad for SEO?

React itself is fine. The risk comes from rendering everything in the browser: Google has to render the page before it sees the content, links built without an href are not followed, and several AI crawlers did not run JavaScript in Vercel's December 2024 data (Step 5 above has the details). React sites that render key content on the server, through Next.js or a similar framework, carry no ranking handicap from React itself.

Do I need server-side rendering for SEO?

For pages you want found, I recommend it. Google can render client-side pages, but it queues them for rendering, and other crawlers often cannot render them. Server-side rendering or static generation puts the main text, links and metadata in the first HTML response, which every crawler can read. Google itself recommends server-side rendering, static rendering or hydration.

How do I check what Google sees on a JavaScript page?

Run URL Inspection in Search Console. "View crawled page" shows the HTML of the indexed version, and a screenshot is [available only in a live test](https://support.google.com/webmasters/answer/9012289). For a whole site, crawl it twice, once with JavaScript rendering off and once with it on, and compare word counts, links and metadata per template. Whatever exists only after a click is missing for Google.