JavaScript SEO: how Google crawls, renders and indexes
A page built in the browser is a page Google has to build too. Most JavaScript SEO problems are about what is missing before that happens.
Google processes JavaScript pages in three phases: crawling, rendering and indexing. Every page that returns 200 is queued for rendering, where a headless Chrome runs the scripts. Problems arise when links, content or status signals exist only after rendering. Server-side rendering or pre-rendering removes most of that risk.
Google's JavaScript SEO basics page describes three phases. Googlebot crawls a URL and reads the HTML response. Pages that return 200 go into a rendering queue, where a headless Chromium runs the JavaScript and produces the final HTML. Google then indexes that rendered result. Google says all 200 pages go to rendering whether or not they use JavaScript, unless a robots meta tag or header says not to index them. It is the rendering item on our technical SEO checklist.
What breaks, phase by phase
| Phase | Typical failure | Fix |
|---|---|---|
| Crawl | Links built with click handlers instead of a href, so there is nothing to follow | Use real anchor links with URLs |
| Crawl | Routes in URL fragments (#/products), which Google generally ignores | Use the History API for client-side routing |
| Render | Scripts blocked by robots.txt, or content loaded only after a tap or scroll | Allow script files; load content into the HTML or on viewport |
| Index | An app shell with an error message that still returns 200: a soft 404 | Redirect, or add a noindex tag with JavaScript on error views |
| Index | Title, canonical or meta robots changed by JavaScript in conflicting ways | Set them in the server HTML and do not rewrite them |
Status codes in single-page apps
A single-page app often returns 200 for every address, including ones that do not exist, and then shows "not found" in the browser. Google's page gives two remedies: redirect to a URL whose server returns a 404, or add a noindex robots tag to the error view with JavaScript. Without one of them, these pages turn up as soft 404s; see HTTP status codes for SEO.
Client-side, server-side or pre-rendered?
Google can render client-side apps, and says so. What server-side rendering or pre-rendering buys is certainty and speed: the content and links are in the first response, for Google, for other search engines and AI crawlers that may not run scripts, and for visitors on slow phones. For a marketing site, a blog or a catalogue, our view is that the content should be in the HTML. Interactive tools can stay client-side.
Our own site
colleviate.com is generated as static HTML: every article's text, headings, links, FAQ and structured data are in the file the server sends. Scripts on our pages (a median of four per page, including structured data blocks) handle analytics and small interface features, not content. We chose this deliberately, so that any crawler, including those of AI answer engines, reads the same page a visitor does.
How to test
- View the page source (not the inspector) and search for a sentence from the main content. If it is missing, the content depends on rendering.
- Use the URL Inspection live test and compare the rendered HTML with what you expect.
- Check links in the rendered HTML are anchor elements with an href.
- Check addresses use paths, not fragments; see URL structure.
- On mobile, check nothing essential waits for a tap; see mobile-first indexing.
Sources
- Understand JavaScript SEO basics, Google Search Central, undated
- Fix lazy-loaded website content, Google Search Central, undated
- Link best practices for Google, Google Search Central, undated
- Colleviate technical check of colleviate.com (site build and live HTTP responses), Colleviate, 5 Dec 2026
Questions we get asked
Can Google index JavaScript websites?
Yes. Google renders pages with a headless Chromium. Problems come from links, content or status signals that only exist after rendering or interaction.
What are the three phases of JavaScript processing?
Crawling, rendering and indexing, according to Google's JavaScript SEO basics page.
Should I use server-side rendering for SEO?
It is not required, but having content and links in the first HTML response removes most rendering risk.
Why do single-page apps get soft 404s?
They often return 200 for every address. Google suggests redirecting to a real 404 or adding noindex to error views.
Built on React, Angular or a headless CMS?
We check what Google renders on your key templates and fix the gaps without rebuilding the site.
Ask for a scoped auditWhat we do · How we produce it · Who we do it for · Talk to us