JavaScript SEO is the part of technical SEO that makes sure content and links created or changed by JavaScript can be crawled, rendered and indexed. What sets it apart is timing: search engines see your raw HTML first and the JavaScript-rendered version later, and some crawlers, including many AI crawlers, may never see the rendered version at all.
Plenty of modern sites are built with frameworks such as React, Vue or Angular, and plenty of WordPress sites lean on JavaScript for menus, tabs, reviews and forms. None of that is a problem in itself. It becomes a problem when important content or links only exist after scripts run. This guide is part of the wider technical SEO guide.
Can Google render JavaScript?
Contents
Yes. Google runs JavaScript using an evergreen version of Chromium, so it can render most modern sites. But rendering is a separate step that happens after crawling, and Google itself still recommends server-side rendering or pre-rendering because it is faster for users and crawlers and because not all bots can run JavaScript.
How does Google’s rendering pipeline work?
Google processes JavaScript pages in three phases: crawling, rendering and indexing. Each one has consequences for SEO.
- Crawling. Googlebot checks robots.txt, fetches the URL and reads the raw HTML. Links found in that HTML are queued for crawling. If your JavaScript files are blocked in robots.txt, Google will not render them.
- Rendering. Pages that return a 200 status go into a render queue. Google says a page may stay there for a few seconds, or longer. A headless Chromium then runs the JavaScript and builds the final page.
- Indexing. Google indexes the rendered HTML and extracts any new links from it for crawling.
The practical takeaways, drawn from Google’s JavaScript SEO basics:
- Content and links in the initial HTML are seen at the crawling stage. Content added by JavaScript is only seen after rendering.
- If a page carries a
noindextag in its original HTML, Google may skip rendering entirely, so removing the tag with JavaScript may not work. - Single-page apps that route on the client often cannot return real 404 status codes. Google suggests redirecting to a URL that returns a 404, or adding a noindex tag with JavaScript, to avoid soft 404s.
- Routing should use the History API, not URL fragments (#), because Google does not treat fragments as separate pages.
- Do not block JavaScript or CSS files that the page needs. The robots.txt guide explains how to check.
Why do links need a real href?
Google can generally only follow links that are <a> elements with an href attribute. Links inserted by JavaScript are fine if they use that markup. Click handlers on buttons or spans are not reliably followed, which can leave whole sections of a site undiscovered.
<!-- Google may not follow this -->
<span onclick="goTo('/services/')">Services</span>
<!-- Google can follow this -->
<a href="/services/">Services</a>
This matters for site architecture: if your main navigation or category filters are built without real links, Google may struggle to find the pages underneath them.
What is the difference between SSR and CSR?
Server-side rendering (SSR) sends finished HTML from the server; client-side rendering (CSR) sends a mostly empty page plus JavaScript that builds the content in the browser. web.dev’s guide to rendering on the web describes the main options:
| Approach | How it works | SEO risk | Notes |
|---|---|---|---|
| Static rendering | HTML is generated for each URL at build time | Low | Fast and simple; suits content that does not change per visitor |
| Server-side rendering (SSR) | The server builds HTML for each request | Low | Crawlers get a complete page without running JavaScript |
| SSR with hydration | Server HTML is sent, then scripts add interactivity | Low to moderate | Common in modern frameworks; watch the JavaScript cost for INP |
| Client-side rendering (CSR) | The browser builds the page with JavaScript | Higher | Google can render it, but other crawlers may see a blank page |
| Dynamic rendering | Bots get pre-rendered HTML, users get the JavaScript app | Moderate | Google calls it a workaround, not a long-term solution |
On that last row, Google is explicit: dynamic rendering was a workaround and not a long-term solution. It recommends server-side rendering, static rendering or hydration instead. If you are choosing a framework setup today, pick one that outputs real HTML for your important pages.
Heavy client-side JavaScript also affects speed, especially responsiveness. The Core Web Vitals guide covers how script weight shows up in INP.
Do AI crawlers render JavaScript?
Often they do not. Google itself notes that not all bots can run JavaScript, and AI crawlers are the clearest example. As of late 2026, the crawlers behind AI assistants and AI search tools are generally reported by people who test them to fetch raw HTML and not execute scripts, though this is industry observation rather than something each provider documents.
The consequence is simple. If your service descriptions, prices, FAQs or reviews only appear after JavaScript runs, an AI crawler may see an empty shell and have nothing to quote. Googlebot might index the page fine while AI answers ignore it.
- Put the content you want cited in the server HTML, not behind tabs that load on click or widgets that fetch text after load.
- Check what a non-rendering fetch of your page returns (see the testing steps below).
- Make sure you are not blocking those crawlers by accident. The GPTBot and robots.txt guide covers AI crawler access.
- For the wider picture on AI visibility, see how to show up in ChatGPT.
How do I test JavaScript SEO?
Compare what a crawler receives before and after rendering. If important content or links only exist after rendering, you have a risk to fix. These are the checks I run:
- View source vs inspect. In your browser, “View page source” shows the raw HTML. The Elements panel in DevTools shows the rendered page. Search both for a key sentence and a key link.
- Disable JavaScript. Turn off JavaScript in your browser settings or DevTools and reload. Whatever disappears is what non-rendering crawlers will miss.
- URL Inspection in Search Console. Run a live test to see the page as Googlebot fetched it, including a screenshot and the tested page’s HTML.
- Rich Results Test. Google recommends it alongside URL Inspection for checking rendered HTML. It works on any publicly accessible URL, so you can also compare against competitors.
- Fetch the raw HTML. A command-line request returns only what the server sends, which is close to what a non-rendering AI crawler sees.
- Crawl twice. Run a site crawler with JavaScript rendering off, then on, and compare word counts, links and titles across templates.
- Check indexing. Search for an exact sentence that only exists after rendering, and review the Page indexing report. The pages not indexed guide explains the statuses.
curl -s https://www.example.com/services/ | grep -i "emergency repair"
If the sentence is missing from the raw response but visible in the browser, it is being added by JavaScript.
What are the most common JavaScript SEO problems?
Most problems I find are not exotic framework bugs. They are ordinary build decisions that nobody checked from a crawler’s point of view. A developer adds a reviews widget, a theme loads service details into tabs on click, or a plugin rewrites the title tag after load. Each one looks fine in a browser. The usual suspects:
- Main content, product details or reviews loaded by client-side scripts after the page renders.
- Navigation built from buttons or click handlers instead of real links.
- Title tags, meta descriptions or canonical tags set or changed by JavaScript, so the raw HTML disagrees with the rendered page.
- A noindex tag in the raw HTML that scripts are meant to remove.
- Infinite scroll with no paginated, linkable URLs behind it.
- Error pages in single-page apps that return a 200 status, creating soft 404s.
- Critical scripts blocked in robots.txt.
FAQ
Can Google render JavaScript?
Yes. Google renders pages with an evergreen version of Chromium after it crawls them. Rendering happens in a queue, so JavaScript-added content can be seen later than HTML content, and Google still recommends server-side or static rendering.
Do AI crawlers render JavaScript?
Generally not, based on industry testing as of late 2026, although providers rarely document it. Assume an AI crawler sees only your raw HTML, and put the content you want cited there.
Is client-side rendering bad for SEO?
Not automatically. Google can index client-side rendered pages, but they need more testing, they can be slower, and other crawlers may miss the content. For important pages, server-side or static rendering is the safer choice.
Should I use dynamic rendering?
Only as a stopgap. Google describes dynamic rendering as a workaround and not a long-term solution, and recommends server-side rendering, static rendering or hydration instead.
If you suspect search engines or AI tools are not seeing what your visitors see, I can test your templates and give your developers a clear list of fixes through my technical SEO services. Get in touch to talk it through.