Free auditStart free
GlossaryGlossary · Crawling and indexing

JavaScript SEO

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 withChatGPTClaudePerplexityGoogleAI Mode
01Worth knowing

How Google processes a JavaScript page

Crawl

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, unless a 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 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 can make the page faster for users and crawlers, and works for bots that cannot run JavaScript.

02Checklist

Build a page that survives both fetches

  1. 01Use 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. 02Return the right status. Google suggests a 404 for a page that could not be found and a 401 for pages behind a login.
  3. 03Do not block required files. If robots.txt blocks the page or scripts needed to render it, Google will not render that JavaScript.
  4. 04Keep 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. 05Mark 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.
03How 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.

Sources · 3

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • google.com
  1. 01Understand the JavaScript SEO basicsdevelopers.google.com · checked 2026-10-24
  2. 02Get started with Search: a developer's guidedevelopers.google.com · checked 2026-10-24
  3. 03How To Use Search Consoledevelopers.google.com · checked 2026-10-24
Questions

Asked a lot.

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

01Does 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.

02Should 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.

Free · 2 minutes

Know the term. Now check your site.

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

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • +212% organic clicks in 90 days Ledgerly