# JavaScript SEO

> Google can render JavaScript, but rendering is a separate processing step. Check HTML, links, status codes, and rendered output before launch.

Canonical: https://scaplet.com/glossary/javascript-seo

Glossary Glossary · Crawling and indexing

Google can render JavaScript, but rendering is a separate processing step. Check HTML, links, status codes, and rendered output before launch.

3 min

read

3

sources

Oct 24, 2026

updated

Scaplet Editorial Team

author

In one line

JavaScript SEO is the work of making JavaScript-powered pages discoverable and understandable to search engines. Google processes JavaScript pages in three phases: crawling, rendering, and indexing, and a page can wait in the rendering queue. Server-side or pre-rendering is still recommended, since not all bots can run JavaScript. Check the rendered page in Search Console.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fjavascript-seo%20(%22JavaScript%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fjavascript-seo%20(%22JavaScript%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fjavascript-seo%20(%22JavaScript%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fjavascript-seo%20(%22JavaScript%20SEO%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 4 parts, 3 minutes.

1. [How Google processes a JavaScript page 01](#how-google-processes-a-javascript-page)
2. [Build a page that survives both fetches 02](#build-a-page-that-survives-both-fetches)
3. [Test the rendered result 03](#test-the-rendered-result)
4. [Choose rendering based on the page 04](#choose-rendering-based-on-the-page)

_01_Worth knowing

## How Google processes a JavaScript page

### Crawl

[Googlebot](/ai-crawlers/googlebot) fetches the URL if crawling is allowed and parses the initial HTML for links.

### Render

Google queues pages with a `200` response for [rendering](/glossary/rendering), unless a [robots meta tag](/glossary/robots-meta-tag) or header tells it not to index the page. Once its resources allow, a headless Chromium renders the page and runs the JavaScript.

### Index

Google processes the [rendered HTML](/glossary/rendered-html) and can discover additional links created by the page.

This means a blank initial HTML response is not automatically a failure, but it adds a rendering dependency and delay. Server-side or [pre-rendering](/glossary/static-site-generation) can make the page faster for users and crawlers, and works for bots that cannot run JavaScript.

_02_Checklist

## Build a page that survives both fetches

1. 01 **Use real links.** Make navigation and important page links `<a href="/path">` anchors. Google can process JavaScript-injected links too, as long as they follow crawlable-link requirements.
2. 02 **Return the right status.** Google suggests a `404` for a page that could not be found and a `401` for pages behind a login.
3. 03 **Do not block required files.** If robots.txt blocks the page or scripts needed to render it, Google will not render that JavaScript.
4. 04 **Keep canonical signals consistent.** Prefer setting `rel="canonical"` in the original HTML. If JavaScript sets it, use the same URL as the original HTML rather than switching to a different canonical after rendering.
5. 05 **Mark error screens in single-page apps.** With client-side routing the server may not return a `404`. Google suggests using JavaScript to redirect to a URL that returns a `404` (for example `/not-found`) or adding `<meta name="robots" content="noindex">` to error pages, to avoid soft 404 errors.

_03_How it works

## Test the rendered result

1. 1

### Fetch the initial response

Use `curl -sS -D - https://example.com/page -o /tmp/page.html` and check the status, title, canonical, robots directives, main text, and links in the returned HTML.
2. 2

### Inspect Google's rendered page

Use the URL Inspection tool in Search Console to test the live URL, then look at the rendered HTML. Google's JavaScript guide points to this tool and the rendered HTML for checking what Google can see. Check that the main text, metadata, and important links appear.
3. 3

### Compare initial and rendered HTML

If content or links are missing only in the rendered view, check browser console errors, resources blocked by robots.txt, and JavaScript features Google does not support.
4. 4

### Check status and indexing controls

Confirm the live response has the intended HTTP status and that no `noindex` header or meta tag is left from staging.

_04_At a glance

## Choose rendering based on the page

Approach

### Server-side rendering

Good fit

Core landing pages, documentation, product pages, and routes used by crawlers that do not run JavaScript

Tradeoff

The server must render each request or use a cache

Approach

### Pre-rendering / static generation

Good fit

Content that can be generated at build or publish time

Tradeoff

Freshness depends on how and when the page is rebuilt

Approach

### Client-side rendering

Good fit

App screens where users already need JavaScript

Tradeoff

Search engines and other bots depend on successful rendering to see the content

There is no blanket rule that a JavaScript site needs a rewrite. Test your highest-value routes first, including one content page, one product page, and one route with dynamic data. For the rendering terms, see [server-side rendering](/glossary/server-side-rendering) and [client-side rendering](/glossary/client-side-rendering).

Sources · 3

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- google.com

1. 01 [Understand the JavaScript SEO basics](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics) developers.google.com · checked 2026-10-24
2. 02 [Get started with Search: a developer's guide](https://developers.google.com/search/docs/fundamentals/get-started-developers) developers.google.com · checked 2026-10-24
3. 03 [How To Use Search Console](https://developers.google.com/search/docs/monitor-debug/search-console-start) developers.google.com · checked 2026-10-24

Questions

## Asked a lot.

2 questions people ask next, answered from the sources on this page.

_01_ Does Google index JavaScript content?

Google can render JavaScript and uses rendered HTML for indexing, but crawling and rendering are separate queued steps. Verify the rendered page with URL Inspection.

_02_ Should every SEO page use server-side rendering?

Not necessarily. Use rendering that makes key content reliable for your users and the crawlers you need to support. Google notes that server-side or pre-rendering also helps bots that cannot run JavaScript.

## Keep learning

[All glossary](/glossary)

[Learn Client-side rendering Crawling and indexing](/glossary/client-side-rendering) [Related Indexing Crawling and indexing](/glossary/indexing) [Read next Rendering Crawling and indexing](/glossary/rendering) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Internal search](/glossary/internal-search) [International SEO](/glossary/international-seo) [JSON Feed](/glossary/json-feed) [JSON-LD](/glossary/json-ld)

More in Crawling and indexing
[ETag](/glossary/etag) [Google Indexing API](/glossary/google-indexing-api) [Google Search Console](/glossary/google-search-console) [HTML sitemap](/glossary/html-sitemap) [HTTP status codes](/glossary/http-status-codes) [HTTPS](/glossary/https) [Hydration](/glossary/hydration) [Index bloat](/glossary/index-bloat) [Indexability](/glossary/indexability) [Indexing](/glossary/indexing) [IndexNow](/glossary/indexnow) [Infinite scroll](/glossary/infinite-scroll) [JavaScript SEO](/glossary/javascript-seo) [lastmod](/glossary/lastmod) [Load more button](/glossary/load-more) [Log file analysis](/glossary/log-file-analysis) [Meta refresh](/glossary/meta-refresh) [Nofollow](/glossary/nofollow) [noimageindex](/glossary/noimageindex) [Noindex](/glossary/noindex) [Orphan page](/glossary/orphan-page) [Page indexing report](/glossary/page-indexing-report) [Pagination](/glossary/pagination) [Removals tool (Search Console)](/glossary/removals-tool)

Terms on this page
[Rendering](/glossary/rendering) [Robots meta tag](/glossary/robots-meta-tag) [Rendered HTML](/glossary/rendered-html) [Static site generation](/glossary/static-site-generation) [Server-side rendering](/glossary/server-side-rendering) [Client-side rendering](/glossary/client-side-rendering)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
