
Short answer: To find JavaScript SEO problems, compare the raw HTML your server sends with the rendered HTML Google builds after running your JavaScript. If something important, such as the main content, internal links, title, canonical tag, robots tag or structured data, exists in only one of the two versions, that is where to investigate. Google can run JavaScript, but your page can still fail if the content or links never reach the rendered HTML.
Key takeaways
- JavaScript SEO is the work of making sure pages that depend on JavaScript can still be crawled, rendered and indexed.
- Google processes JavaScript pages in three phases: crawling, rendering and indexing. Rendering uses headless Chromium, and the rendered HTML is what Google indexes.
- The core test is simple: compare raw HTML and rendered HTML for content, links and metadata.
- Use URL Inspection (live test), the Rich Results Test, browser tools and a JavaScript-rendering crawler as evidence, not guesses.
- Google still recommends server-side rendering or pre-rendering because it is faster for users and crawlers, and not all bots can run JavaScript.
What is JavaScript SEO?
JavaScript SEO means making sure search engines can discover, render and index content that your JavaScript creates or changes. Put simply, SEO for JavaScript websites is about closing the gap between what users see and what a crawler receives.
It matters for single-page apps, sites built with modern frameworks, and any page where content, links or metadata are added after the first page load.
According to Google’s JavaScript SEO basics, Google processes JavaScript web apps in three main phases:
- Crawling: Googlebot fetches the URL, checks robots.txt, and reads links in the HTML.
- Rendering: Pages with a 200 status code are queued for rendering. When resources allow, headless Chromium runs the JavaScript.
- Indexing: Google can use rendered HTML to evaluate the page for indexing and to discover more links; indexing is not guaranteed.
Googlebot JavaScript rendering is a separate stage from crawling, which is why the two views can differ. Two details matter in practice. Google does not render JavaScript from files or pages that robots.txt blocks, and a page can wait in the render queue for a few seconds or longer.
Can Google read JavaScript?
Yes. Google runs JavaScript with an evergreen version of Chromium. The question is not whether Google can read JavaScript in general, but whether your page, with your scripts, resources and routes, produces the content and links you expect once rendered. That is what a rendering check answers.
Raw HTML vs rendered HTML

| Version | What it is | How to see it |
|---|---|---|
| Raw HTML | The response your server sends before any JavaScript runs | View Source, or curl |
| Rendered HTML | The page after JavaScript has run and changed the DOM | Browser Inspect, URL Inspection, Rich Results Test |
Google notes that crawling and parsing raw HTML works well for classic or server-side rendered pages, where the HTML response already contains all the content. Some JavaScript sites use an app shell, where the first HTML has no real content, so Google must run JavaScript to see it.
An app shell is not automatically a problem. It becomes one when the rendered result is incomplete, slow, blocked or inconsistent with the raw HTML.
What to compare: content, links and metadata
Check these elements in both versions.
| Element | Why it matters | Red flag |
|---|---|---|
| Main content | This is what Google indexes | Present for users but missing in the rendered HTML Google sees |
| Internal links | Google finds URLs through <a href> links | Links built with click handlers, or only #/route fragments |
| Title and meta description | Used to describe the page in search | Generic in raw HTML, different after JavaScript, or missing |
| Canonical tag | Tells Google your preferred URL | Different canonical in raw vs rendered HTML, or two canonical tags |
| Robots meta tag | Controls indexing | noindex in raw HTML that JavaScript later tries to remove |
| Structured data | Helps Google understand the page | Injected by JavaScript but never tested |
| Status code | Tells Google if the page exists | A "not found" screen that still returns 200 |
How to check JavaScript rendering issues, step by step
A JavaScript rendering SEO check works best as a repeatable routine: run the same steps on each important template, and record what you find.
1. Compare View Source with Inspect
Open the page in Chrome. Use View Page Source to see the raw HTML, then right-click and choose Inspect to see the DOM after JavaScript. If your main text, links or heading appear in Inspect but not in View Source, they depend on JavaScript.
2. Test the raw response with curl
This shows what a client without JavaScript receives:
curl -s https://example.com/page | grep -i "your key phrase"
curl -sI https://example.com/pageThe first command searches the raw HTML for a phrase that should be on the page. The second shows the status code and headers.
3. Turn JavaScript off in your browser
In Chrome DevTools, open the Command menu and run Disable JavaScript, then reload. What remains is roughly your raw-HTML experience. It is a quick check, not a replacement for testing how Google renders the page.
4. Run URL Inspection and test the live URL
In Search Console, inspect the URL, click Test live URL, then View tested page. Review the rendered HTML, the screenshot and the additional information about page resources and JavaScript console messages. Missing content in this rendered HTML is the strongest evidence you can get that Google may not see it. Google’s URL Inspection help explains the report and its limits.
5. Use the Rich Results Test as a second view
Google suggests the Rich Results Test or URL Inspection to see rendered HTML. This is useful for pages you cannot inspect in Search Console, and for checking structured data that JavaScript generates.
6. Crawl with JavaScript rendering on
A crawler that supports JavaScript rendering, such as Screaming Frog’s SEO Spider, lets you compare raw and rendered versions across many URLs, and find which pages lose links or metadata. Run a text-only crawl first, then a JavaScript crawl, and compare the differences.
7. Look for patterns in Search Console
Open the Page indexing report and check whether affected URLs are listed under crawled – currently not indexed or discovered – currently not indexed. Rendering problems usually affect a whole template, not one page, so a pattern in the report is a useful clue.
A worked example (illustrative)
Imagine a product page built as an app shell, a common JavaScript SEO situation. These are hypothetical results from the checks above:
| Check | Raw HTML | Rendered HTML |
|---|---|---|
| Title | "Store" | "Blue Running Shoes — Example Store" |
| H1 and description | Missing | Present |
| Internal links | 3 (header only) | 15 (including related products) |
| Canonical | Missing | Correct URL |
| Status code | 200 | 200 |
Reading the table: the content, links and canonical all depend on rendering. If URL Inspection shows them in the rendered HTML, the test indicates they can be seen in that rendering, but it does not guarantee indexing; reliance on JavaScript adds dependencies. If URL Inspection shows an empty page or missing links, the next step is to look at blocked resources, script errors and the rendering approach. The example is hypothetical and shows the method, not a real result.
Common JavaScript SEO issues and fixes
| Issue | What Google says or recommends | Fix |
|---|---|---|
| Links Google cannot follow | Google finds links as <a> elements with an href | Use real links; see Google’s crawlable links guide |
| Hash-based routing (#/products) | Googlebot cannot reliably resolve fragment URLs | Use the History API for clean URLs |
| Blocked scripts or pages | Google does not render JavaScript from blocked files or pages | Allow the resources in robots.txt |
| noindex in the original HTML | Google may skip rendering, so JavaScript that removes it may not work | Do not ship noindex if you want the page indexed |
| Canonical changed by JavaScript | Do not change the canonical to something other than the one in the original HTML | Set one canonical, ideally in HTML |
| Error pages that return 200 | Client-side routing can create soft 404s | Return a real 404 when possible; alternatively serve noindex on the error view |
| Stale cached scripts | The rendering service can ignore cache headers and use old files | Use content fingerprints in file names |
| Content hidden in components | Google only sees what is in the rendered HTML | Test web components in the rendered output |
Two of these overlap with existing guides: canonical URL checks and soft 404 errors. If JavaScript-built links leave pages without a crawlable path, see orphan pages.
<!-- Crawlable link -->
<a href="/products">Our products</a>
<!-- Fragment route Google may not resolve reliably -->
<a href="#/products">Our products</a>Server-side rendering SEO and other rendering options
If your check shows important content missing from the rendered HTML, the fix is often a different rendering approach, not more SEO tweaks.
| Approach | How it works | SEO note |
|---|---|---|
| Client-side rendering | Browser builds the page with JavaScript | Works for Google if it renders correctly, but depends on rendering and does not help bots that cannot run JavaScript |
| Server-side rendering | Server sends complete HTML for each request | Content and links are in the raw HTML; Google still recommends it for speed and bot coverage |
| Static generation or pre-rendering | HTML is built ahead of time | Fast and simple for content that changes rarely |
| Dynamic rendering | Crawlers get static HTML, users get the JavaScript version | Google presents this as a workaround, see dynamic rendering |
For server side rendering SEO, the practical benefit is that your key content and links are visible without waiting for a render queue. Google 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.
For an SEO dynamic rendering setup, treat it as a temporary workaround while you move to server-side or static rendering, not as a long-term plan. Sites that rely heavily on client-side JavaScript should also review speed with the Core Web Vitals guide.
JavaScript SEO checklist
- Main content, headings and internal links appear in the rendered HTML (URL Inspection live test).
- Important links are <a> elements with real href URLs, with no fragment-only routes.
- Title, meta description and one canonical are present and consistent between raw and rendered HTML.
- No noindex in raw HTML on pages you want indexed.
- JavaScript, CSS and API resources are not blocked in robots.txt.
- Error views return a real 404 when possible; alternatively use noindex for client-rendered errors and check for soft 404s.
- Structured data is tested after rendering. See schema markup examples.
- Script file names change when content changes, to avoid stale caches.
- Key pages work in a no-JavaScript or text-only crawl at least at a basic level.
JavaScript SEO tools
- Search Console URL Inspection: the closest view of what Google rendered for a specific URL.
- Rich Results Test: rendered HTML and structured data checks.
- Chrome DevTools: compare raw and rendered output, disable JavaScript, and watch console errors.
- A JavaScript-rendering crawler: compare raw vs rendered across the whole site, such as Screaming Frog.
- Lighthouse and PageSpeed Insights: performance and general SEO checks. Use them as supporting evidence, not as proof of indexing.
For wider audits, add these checks to the technical SEO checklist.
JavaScript, AI search and GEO
JavaScript SEO advice from Google is about Google Search. Other crawlers, including those used by AI answer tools, work differently, and their behaviour changes. Google itself reminds site owners that not all bots can run JavaScript.
The practical rule: put your most important facts, headings, definitions and links in the initial HTML wherever you can. Then check each AI crawler’s own documentation instead of assuming it renders JavaScript. Google also publishes a guide to AI features and your website, which is worth reading alongside this one.
Frequently asked questions
What is JavaScript SEO?
JavaScript SEO is the practice of making sure pages that rely on JavaScript can be crawled, rendered and indexed by search engines, including content, links and metadata that JavaScript adds.
Can Google read JavaScript?
Yes. Googlebot renders pages with headless Chromium and uses the rendered HTML to index content and discover links. Rendering can be delayed, and problems such as blocked files, script errors or non-crawlable links can still stop content from being seen.
How do I check if Google renders my JavaScript content?
Run a live test in Search Console’s URL Inspection tool and open the tested page. Check the rendered HTML and screenshot for your main content and links. The Rich Results Test gives a second view.
Is JavaScript bad for SEO?
Not by itself. JavaScript SEO problems start when JavaScript becomes an SEO issue: it hides content or links from the rendered HTML, blocks rendering, or creates conflicting metadata and status codes.
Does server-side rendering help SEO?
It can help, because the content and links are in the initial HTML. Google says server-side rendering or pre-rendering is still a great idea because it is faster for users and crawlers, and not all bots can run JavaScript.
Is dynamic rendering recommended?
Google presents dynamic rendering as a workaround, not a long-term solution. Prefer server-side rendering, static generation or pre-rendering where possible.
What to do next
- Pick one important template and run the seven JavaScript SEO checks above before changing any code.
- Fix link and metadata mismatches first, then consider a rendering change. Most JavaScript SEO fixes start there.
- If you need a wider review, use the technical SEO checklist linked above, then see how to fix crawl errors.
- To learn this step by step, ask about SEO training.



