JavaScript search engine marketing must be a solved downside by now. It isn’t.
Ecommerce websites preserve hitting the identical crawling, rendering, and indexing points they have been 5 years in the past, now stacked on prime of headless builds, AI-powered suggestions, and frameworks that may conceal vital content material from Google.
These prime ecommerce gamers have found out find out how to ship quick, trendy JavaScript with out sacrificing natural visibility. Listed here are 5 classes price stealing.
1. Chewy makes use of JavaScript for UX
Chewy is among the largest on-line retailers of pet meals and provides within the U.S. They use Subsequent.js, a React framework for constructing web sites with built-in help for server rendering, static technology, and full-stack improvement options.
Which means you possibly can put vital content material within the preliminary HTML response without relying on client-side JavaScript.
Let’s have a look at a product web page just like the Benebone Wishbone Chew Toy.


Navigate to View Web page Supply and also you’ll see the product title, description, pricing, opinions, Q&A, and breadcrumb navigation all current within the preliminary HTML. Googlebot can entry it on the primary go, without waiting for rendering.


That’s vital as a result of if an online crawler like Googlebot encounters points rendering your web page, the vital content material can nonetheless be parsed on the primary crawl. With the rise of AI chatbots, a few of which nonetheless don’t render JavaScript, this has turn out to be much more vital.
Not every part must be within the preliminary HTML, although. With out client-side JavaScript, the web page would really feel static and clunky.
Take the “Examine Comparable Gadgets” carousel. It’s loaded client-side, primarily there for buyers. The interior hyperlinks might provide some search engine marketing profit, however they’re not vital for indexing this web page the way in which the title, description, and pricing are.


Chewy will get this steadiness proper. The content material that issues most for indexing is on the market on preliminary load. Shopper-side JavaScript enhances the expertise slightly than delivering the content material that must be listed.
Your customers search everywhere. Make sure your brand shows up.
The SEO toolkit you know, plus the AI visibility data you need.
Start Free Trial
Get started with


2. Myprotein makes navigation crawlable
Myprotein sells dietary supplements, vitamin merchandise, and a few health attire.
Their web site is constructed on Astro, a content-first framework utilizing Islands Structure to ship zero JavaScript by default whereas supporting parts from React, Vue, or Svelte.
Myprotein’s navigation is the half price learning. It’s an vital search engine marketing space for ecommerce websites, and so they get it proper.


View the supply on any Myprotein web page and the navigation hyperlinks (classes, dropdown gadgets, and footer hyperlinks) are all within the preliminary HTML response. Astro makes this potential by means of its island architecture.


The navigation ships as an interactive island, that means Astro will hydrate it with JavaScript as quickly because the browser is prepared. However JavaScript makes the flyout menus interactive. It doesn’t create them.
These hyperlinks are additionally correct parts with href attributes, which is what crawlers like Googlebot must discover and follow links. Keep away from utilizing JavaScript click on handlers to simulate navigation, corresponding to:
Clear Protein Drinks
A crawler gained’t observe that. Use an ordinary anchor factor as an alternative:
Not each web site will get this proper. When navigation relies upon solely on client-side rendering, there’s a window the place it’s invisible or empty.
Googlebot processes JavaScript in a separate rendering go that may lag behind the preliminary crawl, which might imply delayed discovery of inside hyperlinks vital for crawl effectivity and hyperlink fairness distribution.
3. Harrods embeds structured information within the HTML
Harrods is a luxurious division retailer promoting trend, magnificence, and homeware.
Their web site is constructed on Nuxt, a Vue framework for constructing web sites with built-in routing, server rendering, and static technology, plus an opinionated challenge construction.
Their structured information is delivered within the preliminary HTML response. View the supply on any product page and also you’ll discover structured information inside a factor. The Product schema consists of the product title, pictures, description, model, and an Supply with value, foreign money, availability, and vendor.


JSON-LD is the format Google recommends for structured information, and since it’s within the HTML response, Google can parse it on the primary crawl go without having to render the web page.
On JavaScript-powered websites, structured information can simply turn out to be a client-side dependency. If a framework fetches product information within the browser and generates JSON-LD from the response, that structured information solely exists after JavaScript executes. The identical is true for structured information injected by means of Google Tag Manager.
If markup is just added after the web page hundreds, Google has to render the web page to seek out it. Google has noted that dynamically generated Product markup could make Buying crawls much less frequent and fewer dependable, which issues when costs and availability change typically.
By serving that structured information within the HTML immediately, Harrods avoids this danger solely.
Get the publication search entrepreneurs depend on.
4. Below Armour handles faceted navigation with JavaScript
Below Armour is a world sportswear model promoting athletic attire, footwear, and equipment. Their web site is constructed on Subsequent.js, the identical React framework Chewy makes use of.
A very good place to see their JavaScript search engine marketing in motion is on class pages, the place filters must really feel quick and interactive for buyers, and be crawler-friendly.
Let’s have a look at the lads’s sneakers class web page. Once you apply a filter, say, choosing measurement 10, the product grid updates immediately with no full web page reload. That’s client-side JavaScript updating the grid.


However the URL updates too. After choosing the filter, the URL turns into:
https://www.underarmour.com/en-us/c/mens/sneakers/?prefn1=measurement&prefv1=10
A consumer can copy that URL, ship it to a good friend, or bookmark it, and land proper again on the identical filtered view.
Discover what the URL isn’t:
- Not a hash fragment (#measurement=10), which doesn’t get despatched to the server and is ignored by Google.
- Not a multitude of bracketed question strings (?filters[0][size]=10).
- Not a dynamic route artifact like /sneakers/search engine marketing/ leaking into the dwell URL.
It’s a clear, readable question string with named parameters.
Below Armour is utilizing the Subsequent.js router to replace the URL as filters change. Below the hood, it wraps the browser’s History API and makes use of the pushState() method to replace the handle bar with no reload.
When somebody visits that very same URL immediately, the web page hundreds with the filter already utilized.
5. Manors Golf hundreds third-party scripts
Manors Golf sells golf attire. Their web site runs on Hydrogen, Shopify’s React-based framework for headless storefronts.
Hydrogen defers its personal utility scripts routinely since they load as ES modules. Nevertheless, third-party scripts are the developer’s accountability. On an ecommerce web site, that may be an extended checklist: opinions, chat, personalization, pixels, suggestions, cost scripts.
That issues for search engine marketing in two methods. Render-blocking scripts damage Core Net Vitals, most immediately Largest Contentful Paint (LCP). Additionally they give Googlebot extra work to render the web page, so it might get processed much less reliably.
An exterior script () with out async or defer blocks HTML parsing. Async fetches within the background and runs when prepared. Defer waits till parsing finishes.
Manors hundreds exterior scripts from 12 third-party domains, together with Klaviyo, TikTok, Microsoft Readability, and Gorgias.
A have a look at the Parts panel reveals all of them loading with async:


By loading third-party scripts with async, Manors retains them from blocking the preliminary render. That protects LCP and reduces the work Google’s Net Rendering Service (WRS) has to do.
See the complete picture of your search visibility.
Track, optimize, and win in Google and AI search from one platform.
Start Free Trial
Get started with

The steadiness between interactivity and crawlability
The problem isn’t that you just’re utilizing JavaScript. It’s what you’re utilizing it for.
Googlebot can course of JavaScript, nevertheless it’s slower and fewer dependable than studying HTML. The extra your core content material, construction, and navigation rely on JavaScript, the extra room there's for issues to go fallacious.
The websites on this article all use JavaScript to boost the expertise slightly than ship it. Try this, and also you gained’t have to decide on between a great consumer expertise and good search engine marketing.
Contributing authors are invited to create content material for Search Engine Land and are chosen for his or her experience and contribution to the search group. Our contributors work underneath the oversight of the editorial staff and contributions are checked for high quality and relevance to our readers. Search Engine Land is owned by Semrush. Contributor was not requested to make any direct or oblique mentions of Semrush. The opinions they specific are their very own.
#JavaScript #search engine marketing #classes #prime #ecommerce #websites

