↓Skip to main content

JavaScript SEO for ecommerce: what Googlebot actually sees on your site

··7 mins
Aggée Kimpiab, founder of Aggée Writes

Written by Aggée Kimpiab

8+ years of SEO experience. Started out machining steel on the factory floor before moving into SEO. Now works with manufacturers, ecommerce brands, and B2B companies on organic growth. Case studies: Lawton Tubes and a DTC ecommerce brand.

Key takeaways

  • ✓Googlebot's JavaScript rendering happens in a second, resource-constrained pass, not the initial crawl, and a large catalogue stretches that budget thin.
  • ✓Server-side rendering and prerendering solve the same problem: making sure the first HTML response already has the real content.
  • ✓Pagination, infinite scroll, lazy loading and JavaScript-injected structured data each have a specific, documented right way to implement for crawlability.
  • ✓Check rendered vs. visible content with the URL Inspection tool after every framework or dependency upgrade, not just at launch.
Table of Contents

JavaScript ecommerce SEO is its own problem, separate from JavaScript SEO in general. Googlebot can execute JavaScript. That fact gets repeated so often that a lot of stores now assume JavaScript rendering is a solved problem. Build the storefront in React, Vue, or whatever framework, and Google will figure it out, right?

Not quite. In practice, “can” is doing a lot of work in that sentence. There’s a real gap between “can render JavaScript” and “reliably renders every product page correctly, at scale, on schedule.” That gap is where a meaningful amount of ecommerce content quietly goes missing from Google’s index.

Why this specifically hits ecommerce harder than other sites #

Google’s JavaScript rendering happens in a second pass, separate from and slower than the initial crawl. The first pass indexes whatever HTML the server actually returns. The second, delayed pass renders the JavaScript and picks up anything that appears afterward.

That second pass isn’t unlimited. Google allocates rendering resources based on a site’s overall crawl budget, and a large product catalogue is exactly the kind of site where that budget gets stretched thin across thousands of pages.

Here’s the practical risk. If a product’s price, availability, description, or core content only appears after client-side JavaScript executes, Google might not pick it up in time. On lower-priority pages deep in a large catalogue, it might not get picked up at all.

Server-side rendering vs. client-side rendering vs. prerendering #

ApproachWhat Googlebot's first pass seesSEO risk
Client-side renderingNear-empty HTML shell, content injected by JS after loadHighest: content depends entirely on the delayed render pass
Server-side renderingFull HTML content, generated on the server per requestLowest: content is present immediately, no render pass needed
Prerendering / static generationPre-built full HTML, served as a static file or cached snapshotLow: same benefit as server-side rendering, often faster to serve

Server-side rendering (SSR) and prerendering both solve the same underlying problem. They make sure the first HTML response Googlebot receives already contains the real content, instead of depending on a second, resource-constrained pass to fill it in.

What Googlebot’s two passes actually look like #

Googlebot's two-pass rendering for JavaScript sitesCrawl (pass 1)Raw server HTMLIndex (pass 1)Whatever HTML hadRender (pass 2)Delayed, budget-limitedIndex updateIf it gets there in time8,000 productpages competingfor this budget
Fig. 1 · The initial crawl indexes raw HTML immediately. JavaScript-injected content waits for a second, budget-limited render pass, and a large catalogue means thousands of pages compete for that same budget.

How to check your own site right now #

Step 1

Use Search Console's URL Inspection tool on a handful of product and category pages, spanning different templates. It shows the actual rendered HTML Google's renderer produced: not what you see in a normal browser, but what Google saw.

Step 2

Compare it against the real page in a browser. Is the price there? The full description? Reviews? Anything present visually but missing from the rendered HTML is a real gap, rather than a false alarm.

Step 3

Repeat this after any frontend framework upgrade, beyond just at launch. A rendering regression introduced by a dependency update is invisible to a normal QA pass, because the page still looks correct in an actual browser.

Fixing it without a full rebuild #

Full server-side rendering usually means real framework-level changes. Next.js, Nuxt, and similar frameworks support this natively; a plain client-side React app typically doesn’t, unless it adopts one of them.

If a full SSR migration isn’t realistic in the near term, there’s a middle ground: a prerendering service. It generates and caches static HTML snapshots specifically for crawlers, while human visitors still get the full interactive JavaScript version. Genuinely effective, and it takes considerably less engineering effort than a framework migration.

One implementation detail matters more than any other. Whatever solution you use, verify it’s serving the same content to Googlebot that a real visitor sees. Serving search engines a different version of a page than visitors get is cloaking, and that’s a policy violation. The goal here is making the real content visible sooner, rather than showing a different page.

Google’s own pagination and incremental loading guidance is specific on this point: Google primarily discovers and indexes URLs through real <a href> links, not through JavaScript click handlers that load content without changing the URL.

Not crawlable

<span onclick="loadProduct(42)">
  View product
</span>

Crawlable

<a href="/products/42"
   onclick="loadProduct(42); return false;">
  View product
</a>

The second version still runs your JavaScript for a fast, app-like transition. It also gives Googlebot a real URL to follow and index if the script doesn’t run, which it won’t during the crawler’s render-less first pass.

Pagination, infinite scroll and lazy loading #

Three closely related patterns, each with a documented right way to implement:

  • Pagination and “load more” buttons should use real, crawlable links to each page, per Google’s pagination and incremental loading guidance, rather than a button that only fires a JavaScript fetch.
  • Infinite scroll needs each chunk of loaded content to get its own persistent, unique URL, ideally updated via the History API as the user scrolls, so Google can index content beyond whatever loaded first. Google’s guide to fixing lazy-loaded content covers this pattern directly, since infinite scroll and lazy-loaded content share the same underlying risk.
  • Lazy-loaded images and content should load based on viewport proximity (the IntersectionObserver API, or native browser lazy loading), never load only on an interaction Googlebot won’t perform, and never lazy-load content that’s visible immediately on page load.

Faceted navigation and duplicate content #

Filter and sort combinations on a category page (size, colour, price range) can generate thousands of crawlable URL variants from what’s really one page. Left unmanaged, this both wastes crawl budget on near-duplicate pages and risks the wrong variant getting indexed as canonical. Decide which filter combinations deserve their own indexable URL (ones with real, distinct search demand) and canonicalise the rest back to the main category page.

Structured data injected by JavaScript #

Google can read structured data injected by JavaScript, including Product, Offer and Review schema, but it’s only read during the same delayed render pass as the rest of your JavaScript content. If your structured data depends on client-side rendering, verify it with the Rich Results Test against the live URL, not just the source code, since the test needs to see what actually renders.

Third-party scripts and render delay #

Analytics tags, chat widgets, review platforms and personalisation scripts all add to the JavaScript Google has to execute before your actual product content appears in the rendered DOM. On a product page already competing for limited render budget, a heavy stack of third-party scripts can push your real content further back in the render queue. Audit what’s actually running on your product pages and remove or defer anything not earning its place.

A test checklist #

  1. Run the URL Inspection tool in Search Console on a handful of product and category pages, across different templates.
  2. Compare the rendered HTML it shows against the real page in a browser: price, description, reviews, availability.
  3. Test structured data with the Rich Results Test against the live URL.
  4. Review Google’s JavaScript SEO basics against your own setup, titles, meta descriptions and canonical tags set in the HTML where possible, not only injected by JavaScript.
  5. Repeat all of this after any frontend framework or dependency upgrade, not just at launch.

Headless commerce changes this, but doesn’t remove it #

A headless setup, a JavaScript frontend talking to a commerce backend over an API, doesn’t remove this problem. It often makes it more acute, since the frontend is JavaScript-driven by design with no server-rendered fallback unless one is deliberately built in. See headless commerce SEO for what changes when the frontend and the commerce backend are separate systems.

Why this matters most on exactly the pages that matter most #

The pages most likely to suffer from rendering delays are the deepest ones in a large catalogue. These are precisely the long-tail product pages that collectively drive a large share of ecommerce organic revenue, even though no single one gets much individual traffic. A rendering problem that only affects your ten best-selling products is bad. One that silently affects the 8,000 products in the long tail is a much bigger, much less visible loss.


Checking rendered vs. visible content on real product pages is a standard early step in any ecommerce SEO audit. It’s one of the highest-leverage technical checks precisely because it’s invisible unless you go looking for it.

Related reading: Ecommerce SEO services · Ecommerce SEO consultant

FAQ

Questions people ask

Can Googlebot really not handle JavaScript at all?
It can execute JavaScript, in a second rendering pass separate from the initial crawl. The problem isn’t that Google can’t render JavaScript, it’s that the second pass is resource-constrained and delayed, which matters most on a large catalogue with thousands of pages competing for that budget.
Is infinite scroll bad for SEO?
Not inherently, but it needs to be implemented so each chunk of content gets its own persistent, unique URL, per Google’s own guidance on pagination and incremental loading. Infinite scroll with no corresponding URLs means Google has no way to index the content beyond the first chunk.
Do I need a full Next.js or Nuxt migration to fix this?
Not necessarily. A prerendering service, generating and caching static HTML snapshots for crawlers while real visitors still get the full interactive version, is a smaller lift than a framework migration, and genuinely effective when implemented correctly.
How is this different for headless commerce platforms?
The same rendering problem applies, often more acutely, since a headless frontend is JavaScript-driven by design. See headless commerce SEO for what changes when the frontend and the commerce backend are separate systems.
Will fixing this count as cloaking?
Only if you serve genuinely different content to Googlebot than to visitors. Prerendering or server-side rendering that surfaces the same content sooner isn’t cloaking; serving a different version of the page to crawlers is, and that’s a policy violation regardless of the rendering method behind it.
Not sure where to start? The 2-minute quiz tells you. Take the quiz