JavaScript Two-Wave Indexing: How Rendering Delays SEO

Two wave indexing explained: Google crawls HTML first and renders JavaScript later. How long the delay is, what Google said and how to stop it hiding content.

· BugViso Team

13 min read

Two-wave indexing is the shorthand for Google crawling a page's raw HTML first and rendering its JavaScript later, in a queue. Content that exists only after JavaScript runs is therefore indexed after content in the initial HTML.

Google's documentation says a page may wait in the render queue "a few seconds" or longer, with no guarantee, so server-render what must be indexed. See how Google renders JavaScript for the full picture.

Googlebot does not render JavaScript as part of the crawl request. Instead it works in two steps: a first pass that parses the raw server-rendered HTML, then a deferred, resource-constrained render handled by Google's Web Rendering Service (WRS).

The "two waves" label is a simplification of that crawl, render queue, index flow, but it is a useful mental model. For JavaScript-heavy applications, the delay can mean late indexing, missed links and unstable snippets.


What Is Two-Wave Indexing? Google's Crawl-Then-Render Pipeline

To understand how JavaScript rendering delays impact search visibility, we must analyze the two distinct phases Googlebot uses to process web pages:

Googlebot Two-Wave Indexing Lifecycle

    1. HTTP REQUEST → Googlebot fetches URL (GET /products/laptop-pro)
  • WAVE 1: INITIAL HTML PARSING
  • Parses raw server HTML, HTTP status code (200/301/404), <head> meta tags.
  • Indexes static text and discovers server-rendered <a href="..."> links.
  • SERVER-RENDERED (SSR/SSG) [ CLIENT-RENDERED (CSR/SPA) ]
  • Full content in Wave 1. * Raw HTML is empty <div id="root">.
  • Content available at the first crawl. * Placed in Deferred WRS Queue!
  • No render step needed for the main content.
  • WAVE 2: WEB RENDERING SERVICE (WRS)
  • Headless Chromium render slot (queued until capacity is free).
  • Executes JS bundle, runs React/Vue hydration, renders virtual DOM.
  • Discovers client-injected links and secondary content.
  • Updates Google index with rendered DOM snapshot.

Wave 1: The Initial HTML Parse

During Wave 1, Googlebot behaves like a traditional HTTP client. It issues a GET request, reads the HTTP response headers, and parses the raw HTML string returned by the origin server.

  • What Gets Processed: Status codes (200 OK, 301 Redirect, 404 Not Found), raw <title> and <meta name="description"> tags, server-rendered text content, and standard HTML <a href="..."> anchor links.
  • Cost: Cheap. Parsing HTML does not need a browser engine.
  • The Problem for SPAs: In a pure client-side application (e.g., standard Create React App, Vite SPA, or CSR Angular), the server-rendered HTML is an empty shell containing <div id="root"></div> and a <script src="/bundle.js"> tag. In Wave 1, Googlebot indexes zero text and discovers zero internal links.

Wave 2: The Web Rendering Service (Deferred)

Because rendering billions of JavaScript web pages across the internet requires massive CPU compute, memory, and electrical power, Google cannot render every crawled page immediately.

  • The Queue: If Googlebot detects that a page relies on JavaScript to render its Document Object Model (DOM), the URL is added to the Web Rendering Service (WRS) queue.
  • The Execution: When computing resources become available, a headless Chromium worker downloads the JavaScript bundles, executes the scripts, resolves API calls, attaches event listeners, and snapshots the rendered DOM.
  • The Latency: Google's documentation says a page "may stay on this queue for a few seconds, but it can take longer than that." In practice the render usually follows soon after the crawl, but there is no guarantee, and heavy or failing scripts can delay it.

Why Rendering Is Deferred

Parsing static HTML is cheap. Running a JavaScript bundle means starting a browser engine, executing scripts, waiting on API calls and computing layout, which costs far more compute per page.

Google therefore separates the two steps and renders from a queue.

1. Rendering Competes for Resources

Because rendering is the expensive step, it runs when capacity is available. Heavy bundles and slow API calls make a page more costly to render and more likely to hit a timeout.

2. Crawl Budget Degradation

Google assigns each domain a dynamic crawl budget based on server response speed and perceived value to users. When rendering a site repeatedly takes long or times out, the scheduler can lower its crawl rate to protect server resources.

3. Critical Failure Modes of Two-Wave Indexing

When a web application relies entirely on Wave 2 to reveal its content, three search failures occur:

  1. Orphaned Internal Links: Links rendered only by client-side JavaScript are invisible in Wave 1. If rendering is delayed or fails, Googlebot cannot discover deep category or product links.
  2. Volatile Search Snippets: Results can first show the empty or generic title from Wave 1, then change once the rendered content is processed.
  3. Outdated Time-Sensitive Content: For news, flash promotions, job boards and listings, content that is indexed late can be obsolete by the time it appears.

Technical Comparison: How Googlebot Processes Different Frameworks

The table below contrasts how Googlebot's crawl-then-render flow treats different rendering approaches.

Framework & Rendering ArchitectureInitial HTML payloadMain content in the first responseDepends on the render queueIndexing risk
Client-Side Rendering (CSR SPA)Near-empty shellNoYesHigh
Server-Side Rendering (Next.js/Remix)Full semantic HTMLYesNo, for main contentLow
Static Site Generation (Astro/Nuxt SSG)Pure static HTMLYesNoLow
Streaming SSR (Next.js)Streamed HTML chunksYes, if content is not behind client-only fetchesNo, for streamed contentLow

4 Architectural Traps That Break JavaScript Rendering in Googlebot

Even when Googlebot renders the page, client-side code can fail because of headless browser constraints:

The 4 Deadly Javascript Rendering Traps

    1. SLOW CONTENT → slow API calls can leave the rendered snapshot with an empty UI.
    1. UNSUPPORTED APIS → LocalStorage, Geolocation, or WebSockets throw errors.
    1. USER INTERACTION LOCKS> Content hidden behind click/scroll triggers is lost.
    1. UNCAUGHT CONSOLE BUGS > Syntax errors or unhandled Promise rejections halt JS.

1. Slow Scripts and Late Content

Google does not publish an exact render timeout, and any fixed number you read is a rule of thumb. What is clear is that the renderer will not wait forever. If your client-side JavaScript runs sequential waterfall API requests (a user profile, then a catalog taxonomy, then product inventory) and the content is still missing when the snapshot is taken, Google can index the skeleton loader or spinner text.

2. Unsupported Browser APIs and Permissions

In headless crawling environments, user-interactive APIs are declined or return nothing:

  • navigator.geolocation.getCurrentPosition() automatically rejects.
  • Notification.requestPermission() throws an error.
  • window.localStorage and sessionStorage do not persist between Googlebot page loads.

If your component initialization logic unconditionally expects localStorage or geolocation to return data before rendering content, the script crashes and halts further rendering.

3. Click-and-Scroll Traps

Search crawlers do not perform arbitrary user interactions. Googlebot does not click "Read More" accordions, scroll down infinite-scroll feeds, or click tabbed navigation interfaces. If content or internal links are only injected into the DOM upon a user click or mouseover event, Googlebot never discovers them.

4. Uncaught Console Errors Halting DOM Construction

In modern browsers, an unhandled JavaScript exception (such as TypeError: Cannot read properties of undefined) stops JavaScript execution in that execution context. If an analytics tracker or third-party marketing script throws an error during the initial render pass, the entire React or Vue component mounting sequence aborts.

Related guides: JavaScript SEO guide, the single page app SEO guide, why JavaScript console errors hurt SEO, why is my page not indexed audit, and how to fix cumulative layout shift CLS.


5 Practical Architectural Strategies to Eliminate Wave 2 Dependency

To make your content, metadata, and internal links available at the first crawl without waiting for the render queue, use these engineering strategies:

Eliminating Wave 2 Indexing Bottlenecks

  • STRATEGY 1: SERVER-SIDE RENDERING (SSR)
  • Compile Vue/React components to full HTML on origin or edge server.
  • STRATEGY 2: STATIC PRE-RENDERING (SSG)
  • Pre-render high-value editorial, product & category pages at build time.
  • STRATEGY 3: SEMANTIC HTML NAVIGATION
  • Use <a href="..."> anchor tags exclusively; ban onClick router navigation.
  • STRATEGY 4: STATIC JSON-LD INJECTION
  • Inject Schema.org markup directly into server-rendered <head> HTML.
  • STRATEGY 5: DYNAMIC PRERENDERING VIA EDGE WORKERS
  • Serve pre-rendered HTML snapshots to search bots via Cloudflare Workers.

Strategy 1: Migrate to Server Components and Universal SSR

Adopt modern server-first frameworks such as Next.js 15 (App Router with React Server Components), Nuxt 3 (Universal SSR), SvelteKit, or Astro. Server Components execute database queries and render semantic HTML directly on the server, shipping zero hydration JavaScript for static content.

Ensure every navigation path uses standard <a href="/target-route"> links. Avoid building interactive <div> or <button> elements with onClick router transitions:

html
<!-- ❌ UN-CRAWLABLE IN WAVE 1 (Requires JS Execution) -->
<button class="menu-item" onclick="router.push('/pricing')">View Pricing</button>

<!-- ✅ CRAWLABLE IN THE FIRST RESPONSE -->
<a class="menu-item" href="/pricing">View Pricing</a>

Strategy 3: Server-Render Schema.org JSON-LD Structured Data

Never rely on client-side JavaScript to fetch structured data asynchronously and inject it into <head>. Inject JSON-LD structured data directly into the initial server response string:

html
<!-- Injected in initial server HTML -> Parsed in Wave 1 -->
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "TechArticle",
  "headline": "JavaScript Two Wave Indexing Google Explained",
  "author": { "@type": "Person", "name": "Technical SEO Team" }
}
</script>

Strategy 4: Edge Worker Dynamic Prerendering

If your organization cannot perform a full framework rewrite, deploy an edge middleware proxy (using Cloudflare Workers, Fastly VCL, or AWS CloudFront Lambda@Edge). The edge worker checks the incoming User-Agent against known crawlers (Googlebot, bingbot, OAI-SearchBot, GPTBot) compliant with RFC 9309 Robots Exclusion Protocol and serves a cached static HTML snapshot, while serving the client-side SPA to real human users.


How BugViso Checks What Rendering Leaves Behind

BugViso loads your pages in real Chromium, so it sees the page after JavaScript runs. It reports:

  1. Console errors. Unhandled runtime exceptions, failed requests and React hydration error codes (#418, #423) that can stop rendering, with script file and stack trace.
  2. AI search readiness. robots.txt access for AI crawlers (RFC 9309 matching), llms.txt validation and extractability, which matters because most AI crawlers do not run JavaScript.
  3. Lab Core Web Vitals. LCP, CLS, TTFB and best-effort INP, plus Slow 3G and Fast 3G re-loads, unused JavaScript and long tasks.

Findings land in a ranked fix list and in the PDF with AI-written code fixes.

You sign in to run a scan, then pay $1.49 per full branded PDF report or use a monthly plan. For the full list of what BugViso tests here, see the developer website audit.


Common Two-Wave Indexing Mistakes Developers Make

The list below names common mistakes that leave a page dependent on the render queue.

  1. Assuming Googlebot Renders Everything Instantly: Believing that because Google can render JavaScript, client-side SPAs have zero indexing latency compared to server-rendered applications.
  2. Hiding Core Navigation in JavaScript Event Handlers: Using onClick router transitions instead of semantic <a href="..."> anchor tags, preventing Googlebot from discovering links in Wave 1.
  3. Relying on Client-Side OpenGraph & Social Tags: Injecting social meta tags via client JavaScript, which fails because social media crawlers (Twitter, LinkedIn, Slack) do not execute JavaScript.
  4. Allowing Slow API Requests: Relying on slow, un-cached backend API microservices so content arrives after Google takes its snapshot.
  5. Omitting XML Sitemaps for SPA Routes: Neglecting to publish an automated, server-generated sitemap.xml that explicitly guides search bots to deep application URLs.

Frequently Asked Questions About Google's Two-Wave Indexing

What is the difference between Wave 1 and Wave 2 indexing?

Wave 1 parses the raw server-rendered HTML response immediately to index basic text, title tags, and HTML links. Wave 2 queues the URL for Google's Web Rendering Service (WRS), which downloads and executes JavaScript in headless Chromium once resources allow.

How long does Google take to render JavaScript in Wave 2?

Google says a page may wait in the render queue "a few seconds", but it can take longer. There is no published maximum, and heavy scripts, errors or slow API calls can delay or break the render.

Do AI search engines like ChatGPT and Claude execute JavaScript?

No. AI crawlers (OAI-SearchBot, GPTBot, ClaudeBot, PerplexityBot) generally do not run full headless browser rendering pipelines. They rely almost exclusively on raw server-rendered HTML text and structured JSON-LD schemas.

Why does client-side rendering hurt crawl budget?

Executing JavaScript costs far more compute than parsing static HTML. When rendering a site is slow or repeatedly fails, Google can lower how aggressively it crawls that site, though it does not publish the exact rule. Our guide to rendering budget vs crawl budget separates the two.

How can I verify what Googlebot sees in Wave 1?

Use curl -s https://example.com/page | grep -E '<h1|<p' in your terminal to see the raw HTML, then compare it with the rendered DOM in Chrome DevTools or Search Console's URL Inspection. BugViso renders pages in Chromium but does not diff server HTML against the rendered DOM, so use curl for the raw side.

Conclusion: Eliminating Rendering Latency for Superior Search Performance

Two-wave indexing splits sites in two. Pages that deliver semantic HTML in the first response do not depend on the render queue, while client-side SPAs depend on a deferred rendering step that can fail or lag.

Move to Server-Side Rendering or Static Site Generation, use semantic anchor navigation, server-render structured data and audit the rendering pipeline with headless cloud tools. Your pages then stop depending on the render queue. Run a BugViso audit to see where your own site stands.

Written by

· BugViso Team

Kazi writes BugViso’s guides on website audits, Core Web Vitals, technical SEO, accessibility and AI search. The data in them comes from audits BugViso runs in a real Chromium browser, including our 219-site study of website health.

Found this useful? Share it.

Summarise with AI

Open this guide in your assistant.

Follow BugViso

New guides and audit data as we publish them.

AI visibility tracker

Is your brand in AI answers?

See how often AI assistants mention you, cite your site and rank you against your competitors.

  • ChatGPT
  • Gemini
  • Perplexity
  • Claude
  • AI Overviews
See how it works

See where your site stands

Run a free BugViso audit for SEO, speed, accessibility and AI search readiness — with fixes you can ship today.