Skip to content

Technical SEO · 8 min read

JavaScript SEO: Rendering, Crawling and Indexing

JavaScript SEO makes a site's JavaScript-generated content, links and metadata crawlable, renderable and indexable the same way static HTML is.

By , Founder and SEO & Development Consultant, Banana MarketingPublished
Empty JavaScript app source code beside the fully rendered HTML page that search engines can read

JavaScript SEO is the practice of making a website's JavaScript-generated content, links and page changes fully crawlable, renderable and indexable by Google, so content a script loads or changes ranks the same way static HTML does. About 6.1% of all websites run on React alone as of June 2026, and Google renders a page's JavaScript in a separate step after crawling it, a step that costs extra time and compute a plain HTML page never asks for.

Key takeaways

  • Definition: JavaScript SEO covers crawling, rendering and indexing content, links and metadata that a script generates or changes after the initial HTML loads.
  • Rendering: Google crawls a page's raw HTML first, then renders its JavaScript in a separate step, a model Google first presented in 2018 and has since worked to make faster.
  • Dynamic rendering: Google rewrote its own guidance in August 2022 to call dynamic rendering "a workaround and not a long-term solution," recommending server-side or static rendering instead.
  • Lazy loading: Google's own guide recommends browser-native lazy loading, the IntersectionObserver API, or a library that loads content on viewport entry, never content that only appears on scroll with no fallback.
  • Testing: Search Console's URL Inspection tool shows the rendered HTML Google actually generated for a URL, compared directly against the page's original source.

What Is JavaScript SEO?

JavaScript SEO is the discipline of making sure content, internal links and page metadata that JavaScript generates or modifies are crawlable, renderable and indexable the same way static HTML is. W3Techs reports React alone running on 6.1% of all websites as of June 2026, and a growing share of the rest load at least some content with a script.

A page built entirely in static HTML needs none of this; every fact, link and heading already sits in the file Googlebot downloads. A page that builds its content with JavaScript instead asks Google to run that script first, a step a static page never requires and a step that can fail, time out, or simply never run. JavaScript SEO is one part of a wider technical SEO review, alongside crawlability, structured data and every other crawl- and index-facing fix.

How Does Google Render JavaScript Pages?

Google crawls a page's raw HTML first, queues its JavaScript for a separate rendering step, then indexes the page using whatever the rendered version actually contains. Google first presented this 2-step crawl-then-render model publicly in 2018, and has worked since to shorten the gap between the 2 steps rather than remove it.

Content that depends entirely on a script succeeding in that second step is content Google cannot guarantee it sees on the first pass, since rendering competes for crawl budget and compute the same way crawling itself does. Google's own guide to fixing JavaScript problems treats crawlability and rendering as 2 separate technical layers; passing the first does not guarantee passing the second.

What Rendering Methods Does Google Recommend?

Google recommends server-side rendering, static rendering or hydration over pure client-side rendering, because each sends a browser, or a crawler, HTML that already contains the page's content instead of an empty shell a script fills in afterward. Client-side rendering alone asks Googlebot to execute every script before any content exists to index.

MethodWhat it sends firstRendering risk
Server-side renderingFull HTML generated per request on the serverLowest; content exists before any script runs
Static renderingPre-built HTML generated once at build timeLow; same advantage, less server load
HydrationStatic or server-rendered HTML, then JavaScript attaches interactivityLow for content, higher for interactive elements
Client-side renderingA near-empty HTML shellHighest; all content depends on script execution succeeding

A site's website structure and URL design still matter under any of these 4 methods, since a rendering fix never repairs a URL a crawler cannot reach in the first place.

Is Dynamic Rendering Still an Option?

Dynamic rendering, serving a pre-rendered version to crawlers while serving the normal JavaScript version to users, is not Google's recommended long-term fix as of August 2022. That month, Google's own documentation reframed the technique as a stopgap rather than something to build a new project around, pointing site owners toward server-side or static rendering instead.

Google's John Mueller has said there is no rush to abandon an existing dynamic rendering setup, and that it is not becoming unsupported on its own. A new project starting from scratch has no reason to choose it, since server-side or static rendering solves the same problem without serving 2 different versions of a page to 2 different audiences.

How Does Lazy Loading Affect JavaScript SEO?

Lazy loading delays loading an image, iframe or content block until it nears the visible viewport, and Google's own guide names 3 supported methods: the browser's native lazy-loading attribute, the IntersectionObserver API with a polyfill where needed, or a JavaScript library built to load content on viewport entry. Content that never loads without a real scroll event risks never rendering for Google at all.

A lazy-loaded image missing a width and height attribute also costs a page its Core Web Vitals score, since the browser cannot reserve its layout space in advance and the page shifts once the image finally loads.

How Does Infinite Scroll Affect Crawling?

Infinite scroll risks hiding content from Google because Googlebot does not scroll a page the way a person does. Google's own guidance asks every content chunk an infinite-scroll page loads to also exist at its own persistent, unique URL, linked sequentially, with the browser's History API updating the address bar as each new chunk loads.

Google's Martin Splitt has described a real test case where Googlebot saw only the first 10 articles on a homepage that held far more, because nothing past that point existed at a URL a crawler was able to follow on its own. Paginated URLs give Googlebot a path to every chunk independent of scroll behavior it does not perform.

What JavaScript SEO Mistakes Hurt Rankings?

The most common JavaScript SEO mistakes block or delay the exact content Google needs from the rendered page: blocked script files, content that only appears after a user interaction, and metadata a script writes too late for Google's renderer to catch. The 6 mistakes below each remove something from the version Google actually indexes.

  • Blocked resources: a robots.txt file disallowing JavaScript or CSS files stops Googlebot from rendering the page the way a visitor sees it.
  • Interaction-gated content: content that only appears after a click or hover, with no fallback, never loads for a renderer that does not click or hover.
  • Late metadata: a title tag, canonical tag or other head element written by JavaScript after Google's rendering cutoff risks being missed entirely.
  • Client-side-only internal links: a link built from a JavaScript click handler instead of a real href attribute gives Googlebot nothing to follow.
  • Unmatched mobile and desktop rendering: a script that renders different content by device breaks mobile SEO's requirement that both versions carry the same content.
  • Insecure injected resources: a script pulling a font, image or API call over plain HTTP on an otherwise HTTPS page triggers a mixed-content warning, the same website security for SEO issue a technical audit checks independently.

How Do You Test a Page's Rendered HTML?

Testing a JavaScript-heavy page means comparing its rendered HTML, the version Google actually evaluates, against its raw source HTML, using Search Console's URL Inspection tool. Clicking Test Live URL, then View Tested Page, opens 1 HTML tab showing exactly what Googlebot's renderer produced for that URL.

A gap between the source and rendered HTML, a heading, paragraph or link present in one but missing from the other, points directly at the rendering problem costing that content its ranking chance. Server log file analysis adds a second check, confirming how often Googlebot actually requests the page's scripts rather than only its initial HTML.

What Belongs on a JavaScript SEO Checklist?

A JavaScript SEO checklist starts with the site's rendering method, moves through content accessibility, internal links and lazy-loaded or infinite-scroll content, and ends with a rendered-HTML test confirming every fix actually worked on the version Google sees. The 6-item list below runs in that same find-to-verify order, matching the sections covered above.

  1. Choose server-side or static rendering over client-side rendering: for any new project, by default.
  2. Avoid dynamic rendering for a new build: Google's own documentation has called it a workaround, not a long-term solution, since August 2022.
  3. Use real href attributes for every internal link: never a click handler alone.
  4. Apply Google's 3 supported lazy-loading methods only: never content gated entirely behind a scroll or click event with no fallback.
  5. Give every infinite-scroll chunk its own persistent URL: linked sequentially, with the History API updating the address bar.
  6. Compare source and rendered HTML in the URL Inspection tool: after every meaningful JavaScript or framework change.

JavaScript SEO is one check inside a wider technical SEO audit, alongside a site's robots.txt, its crawlability, structured data, each canonical tag, hreflang tags, its 301 redirects, its xml sitemap and its Core Web Vitals scores; a full technical SEO checklist walks through all of them together.

NumberWhat it meansSource
6.1%Share of all websites running on React, June 2026W3Techs
2018Year Google first publicly presented its 2-step crawl-then-render modelGoogle
August 2022Month Google rewrote its guidance to call dynamic rendering a workaround, not a long-term solutionGoogle Search Central
10Articles Googlebot saw on a homepage with far more, in Martin Splitt's infinite-scroll test caseGoogle (Martin Splitt)

JavaScript SEO FAQ

What is JavaScript SEO?

JavaScript SEO is the discipline of making sure content, internal links and page metadata that JavaScript generates or modifies are crawlable, renderable and indexable the same way static HTML is.

How does Google render JavaScript pages?

Google crawls a page's raw HTML first, queues its JavaScript for a separate rendering step, then indexes the page using whatever the rendered version actually contains.

Is dynamic rendering still an option?

Dynamic rendering is not Google's recommended long-term fix as of August 2022, when Google rewrote its documentation to call it a workaround, though John Mueller has said an existing setup is not becoming unsupported.

How does infinite scroll affect crawling?

Infinite scroll risks hiding content from Google because Googlebot does not scroll a page the way a person does, so every content chunk needs its own persistent, unique URL.

How do you test a page's rendered HTML?

Search Console's URL Inspection tool, under Test Live URL then View Tested Page, shows an HTML tab with exactly what Googlebot's renderer produced for that URL.

The Bottom Line

JavaScript SEO decides whether the content a script builds ever reaches Google's index: server-side or static rendering over client-side rendering, real href links, Google's 3 supported lazy-loading methods, and paginated URLs for infinite scroll all remove a step Googlebot would otherwise have to guess its way through. Request Banana Marketing's technical SEO audit to see exactly what Google's renderer does and does not see on a site today.

A manager banana leads an annoyed, reluctant junior back to work while checking a client call.

Not sure what's holding your site back? We'll audit it.

Our technical SEO audit checks crawling, indexing, speed and structure, then ranks every fix by impact so your developers know where to start.