JavaScript SEO: Rendering and Indexing Checks

How Google crawls, renders and indexes JavaScript pages, the four faults that hide content from search, and how to test a React or Next.js site.

JavaScript code on a dark editor screen, close up

A JavaScript page can be indexed, but only what Google sees after rendering counts. Google processes these pages in three phases: crawling, rendering and indexing. Pages that return a 200 status wait in a queue until a headless Chromium renders them. Anything that appears only after a click, or fails to load under crawl conditions, may never reach the index. Google’s JavaScript SEO basics

Four faults account for most problems, and each needs a different check.

Fault What Google sees Check
Links built from click handlers No link to follow, because Google only follows <a> elements with an href Search the rendered HTML for <a href> on every navigation path
Routes that change the URL fragment One page, because a # fragment is not a separate URL Confirm client routing uses the History API
Error views that return 200 A soft 404 that Google may store as a real page Redirect to a URL that returns 404, or add noindex on error views
Canonical or title set only by script A conflict when the script differs from the original HTML Compare the raw response with the rendered page

Google may skip rendering entirely for pages with a non-200 status or a noindex directive. A page that relies on JavaScript to remove noindex will stay out.

Which rendering approach should a site use?

Deliver the content in the first response where you can. Google still calls server-side or pre-rendering a great idea, because pages load faster for users and other crawlers may not run JavaScript at all.

Dynamic rendering, which serves crawlers a separate pre-rendered version, is now described by Google as “a workaround and not a long-term solution”. Google recommends server-side rendering, static rendering or hydration instead. Google on dynamic rendering

For React, client-side rendering alone puts every route at the mercy of the render queue. Next.js and similar frameworks can render on the server or at build time. The choice belongs to the page type: content that rarely changes can be built as static HTML, which is the approach a WordPress to Astro migration takes.

How do you test what Google renders?

Compare two versions of the same URL: the raw HTML the server returns, and the rendered page in URL Inspection’s live test. Text, links and structured data that exist only in the rendered version depend on the render queue. Anything missing from both is invisible to search.

Test one URL per template rather than one page at random, because a rendering fault repeats across every page built from that template. If the rendered version is empty, check the page indexing statuses for those URLs before changing code. The technical SEO guide places rendering among the other access checks.

Rendering also affects speed, which Google measures from real visits. The Core Web Vitals guide covers that side. A technical SEO audit runs these comparisons across templates and records the evidence for developers.

Start with a question

Make your next search investment an informed one.

Tell us what you want to understand. We will reply with a short view of what to inspect first.

Request an audit