SEO
JavaScript SEO: How Google Renders JavaScript, Common Problems and the Tools to Test It
How Google crawls, renders and indexes JavaScript, the common JavaScript SEO problems and how to fix them, SSR, SSG, hydration and why dynamic rendering is now a workaround, how to test, and a fair look at JavaScript SEO tools.
JavaScript SEO is making sure search engines can crawl, render and index pages that rely on JavaScript. Google processes JavaScript pages in three phases, crawling, rendering and indexing, and renders them with an evergreen version of Chromium, so it can read most JavaScript sites. Problems start when content only appears after a click, links are not real <a href> links, script files are blocked, or a page that does not exist returns a 200 status. The safest fix is server-side rendering or static generation, so the important content is in the HTML before any JavaScript runs. Test with the URL Inspection live test in Search Console and a crawler that renders JavaScript.
How Google crawls, renders and indexes JavaScript
Google's own JavaScript SEO basics documentation describes three phases.
- Crawling. Googlebot fetches the URL and first checks robots.txt. If the URL is blocked, it is not fetched. It reads the HTML it receives and finds links in
hrefattributes to crawl next.
- Rendering. Pages that return a 200 status are queued for rendering. Google says a page may sit in this queue for a few seconds, and it can take longer. When resources allow, a headless Chromium renders the page and runs the JavaScript.
- Indexing. Google reads the rendered HTML, finds any new links in it, and uses the rendered content to index the page.
Two details from Google's documentation catch people out.
- Noindex in the initial HTML can stop rendering. If Google sees a
noindextag in the HTML it first receives, it may skip rendering altogether. So removing noindex with JavaScript does not work: the page stays out. Get the robots meta tag right in the server response. - Blocked files are not rendered. Google will not run JavaScript from files blocked in robots.txt, so blocking your script or style folders can leave Google looking at a blank page.
Common JavaScript SEO problems
Content that only appears after interaction
Googlebot does not click buttons, open tabs or scroll like a visitor. If text, reviews or product details only load when someone clicks "Read more" or opens a tab, Google may never see them. Put the content in the HTML and use CSS or JavaScript to show and hide it, rather than fetching it on click.
Client-side routing without real URLs
Single page apps often change the view without changing the URL, or use fragments such as #/pricing. Google's guidance is to use the History API so each view has its own path, such as /pricing, and not to use fragments to load different content. Every view you want in search needs a URL that loads that content directly when requested.
Links without href
Google discovers links only from <a> elements with an href attribute. A <span> or <div> with a click handler, or an <a> with no href, is a link to visitors and not to Google. Use <a href="/page"> and add your router behaviour on top.
Blocked resources
If robots.txt disallows your JavaScript, CSS or API endpoints, Google cannot render the page the way a visitor sees it. Check with our robots.txt checker and allow the files the page needs to render.
Soft 404s
In a single page app, the server often returns a 200 status for every URL and the app shows "Page not found" on screen. Google then sees a working page with error text, which it reports as a soft 404, or worse, indexes it. Google's documentation gives two fixes: redirect to a URL where the server returns a real 404, or add a noindex robots meta tag to the error view with JavaScript.
Lazy loading done wrong
Lazy loading images and content is fine, and Google recommends loading images only when they are about to be seen. The risk is lazy loading that waits for scrolling or a click, because Googlebot may not trigger it. Use native loading="lazy" on images, or follow Google's lazy loading guidance so content loads when it enters the viewport.
Titles, canonicals and meta tags set late
If JavaScript writes the title, meta description or canonical after load, the raw HTML may carry a generic title or a canonical pointing somewhere else. Google may use the rendered version, but other crawlers will not. Put these tags in the server response.
Rendering choices: SSR, SSG, hydration and dynamic rendering
- Client-side rendering (CSR). The server sends a near-empty page and the browser builds it. It works for Google in many cases but depends entirely on rendering, and other search engines and AI crawlers may not render at all.
- Server-side rendering (SSR). The server builds the full HTML for each request. Content, links and tags are there from the start. Google's documentation says server-side or pre-rendering is still a great idea, because it makes your site faster for users and crawlers, and not all bots can run JavaScript.
- Static site generation (SSG). Pages are built as HTML in advance. It suits content that does not change per visitor, such as blogs, guides and most marketing pages.
- Hydration. The page arrives as server-rendered HTML, then JavaScript attaches to it and makes it interactive. Next.js, Nuxt and similar frameworks do this by default when you use SSR or SSG. Our JavaScript SEO audit for Next.js and Nuxt covers the framework-specific checks.
- Dynamic rendering. Serving a pre-rendered version to bots and the client-side version to people. Google now describes dynamic rendering as a workaround, not a long-term solution, and recommends server-side rendering, static rendering or hydration instead. If you still use it, plan to move off it.
How to test JavaScript SEO
URL Inspection live test
In Search Console, inspect a URL and run the live test, then choose "View tested page". You get the rendered HTML, a screenshot, and details of page resources that could not be loaded and JavaScript console messages. If your main content or links are missing from that HTML, Google is not seeing them. This is the closest you can get to Google's own view.
Rich Results Test
The Rich Results Test also renders the page with Googlebot and shows the rendered HTML, and you do not need Search Console access for the site. Use it for pages you do not own or have not verified, and to check structured data added by JavaScript.
View source compared with the rendered DOM
In Chrome, View Source shows the HTML the server sent. The Elements panel in DevTools shows the DOM after JavaScript has run. If a heading, paragraph, link or canonical is in Elements but not in View Source, it depends on rendering. Turning JavaScript off in DevTools settings and reloading shows you what a non-rendering crawler gets.
A crawler with JavaScript rendering
Manual checks cover a few pages. A crawler with JavaScript rendering checks the whole site and shows where the raw and rendered versions differ, for example links or canonical tags that only exist after rendering. Run it with rendering on and off and compare.
JavaScript SEO tools
Where we state a feature, we checked it on the company's own site in November 2026.
Google Search Console
Free and essential. URL Inspection shows the rendered HTML and screenshot, and the Page indexing report shows which pages Google excluded and why, including soft 404s and blocked pages. It is the final word on what Google saw, but you test one URL at a time.
Rich Results Test
Free, renders a page with Googlebot and works on any public URL. Use it for quick rendering checks and for structured data.
Chrome DevTools
Free and built into Chrome. View Source against the Elements panel, the Console for errors, and the Network panel to see which requests the page makes and whether any fail. Best for developers working on a single template.
Screaming Frog SEO Spider
A desktop crawler with a JavaScript rendering mode that renders pages in headless Chrome. With HTML and rendered HTML storage switched on, you can view the original and rendered HTML side by side. It is the most configurable option here and suits technical SEOs comfortable with its settings. See UtilitySEO vs Screaming Frog for JavaScript-heavy sites.
Sitebulb
Sitebulb says its crawler uses evergreen Chromium to crawl and render JavaScript, and lets you view the response HTML against the rendered HTML, with hints explaining each issue. Its Single Page Analysis shows the two versions for one URL. A good choice if you want clear explanations alongside the crawl data.
UtilitySEO
Our SEO audit tool crawls every page on your site, up to 10,000 on Enterprise, renders JavaScript and runs 100+ checks on each page on mobile and desktop. So a React or Vue site is not reported as a set of blank pages. It then adds your Search Console, GA4 and PageSpeed data and returns one list of fixes in order of importance, each with a plain English guide.
Where others are the better choice: for a side by side view of raw and rendered HTML on every URL, with full control over rendering settings, Screaming Frog and Sitebulb go further. For Google's exact view of one page, nothing beats URL Inspection. Where we fit: small businesses and small agencies that want JavaScript rendered as part of a whole site audit, ranked by the pages that earn impressions, alongside keyword tracking from your own Search Console. Plans start from £39 a month, with a 14 day free trial and no card needed, or run a free SEO scan with no signup.
A quick JavaScript SEO audit checklist
- Main content, title, meta description and canonical are in the HTML the server sends.
- Every link is an
<a>element with a realhref. - Every view you want indexed has its own path, not a fragment.
- Robots.txt does not block the scripts, styles or API calls the page needs.
- Missing pages return a real 404 status or carry noindex.
- No noindex in the initial HTML on pages you want indexed.
- Lazy loaded content loads without scrolling or clicking.
- The URL Inspection live test shows your content in the rendered HTML.
For the wider list of crawl and indexing problems, see our technical SEO issues list.
Frequently asked questions
JavaScript SEO is making sure search engines can crawl, render and index pages built with JavaScript. It covers putting important content and links in the HTML, using real URLs and href links, not blocking script files, returning proper status codes and choosing a rendering approach such as server-side rendering or static generation. Test it with Search Console and a rendering crawler.
Yes, Google can crawl JavaScript websites. It crawls the page, queues it for rendering, renders it with an evergreen version of Chromium and indexes the rendered HTML. Problems arise when content needs a click to appear, links lack an href, script files are blocked in robots.txt or a noindex tag is in the initial HTML, which can stop rendering.
The best JavaScript SEO tools are Google Search Console for the URL Inspection live test, the Rich Results Test, Chrome DevTools for comparing source with the rendered DOM, and a crawler with JavaScript rendering such as Screaming Frog, Sitebulb or UtilitySEO for checking a whole site. Use a crawler to find problems and URL Inspection to confirm what Google saw.
To do a JavaScript SEO audit, crawl your site with JavaScript rendering on and off and compare the results, then check key templates with the URL Inspection live test. Look for content, links, titles or canonicals that only appear after rendering, fragment URLs, links without href, blocked scripts and missing pages returning a 200 status.
No, dynamic rendering is no longer recommended for SEO. Google describes it as a workaround rather than a long-term solution and recommends server-side rendering, static rendering or hydration instead. If your site still serves a pre-rendered version to bots, plan a move to server-side rendering or static generation, so every visitor and crawler gets the same HTML.
Know what to fix next.
Scan your site for a clearer place to start.
About 30 seconds. No card needed.