This article is part of our Complete SEO Guide, which shows how on-page and off-page SEO fit together and links to every topic in the series.
Key takeaways
- Error pages may not be rendered. Since 18 December 2025, Google's docs say pages with a 200 status are sent to rendering, but pages with other status codes might not be.
- A noindex in the HTML can stop JavaScript from running. Google clarified on 15 December 2025 that it may skip rendering a page whose original HTML says noindex, so JavaScript can't reliably remove it.
- Canonicals should be settled before JavaScript runs. Google added canonical best practices for JavaScript on 17 December 2025. The 2025 Web Almanac found canonicals changed during rendering on 3.02% of mobile pages.
- HTML has a size limit. Google now documents that Googlebot fetches the first 2MB of an HTML file.
- Interest has tripled. Google Trends interest in "javascript seo" averaged 48.4 over the last 12 months, up from 15.0 the year before.
What is JavaScript SEO?
JavaScript SEO is making sure search engines can crawl, render and index pages whose content or links depend on JavaScript. Google processes such pages in stages: it crawls the HTML, queues the page for rendering in a headless Chrome browser that runs the JavaScript, then indexes the rendered result. Problems arise when important content, links or tags only exist after rendering, or when the raw HTML and the rendered page disagree.
Google has rendered JavaScript for years, so the old fear ("Google can't see JS content") is mostly outdated. The real risks are subtler. A page may render fine in a browser but send Google mixed signals: a noindex in the HTML that JavaScript later removes, a canonical that changes after rendering, or a "not found" page that returns a 200 status.
These are exactly the areas Google tightened up in its documentation over the winter.
What the 2026 data shows
Most JavaScript sites are fine for the basics. The trouble sits in the gaps between what the server sends and what the browser builds.
JavaScript and indexing in four numbers
What Google changed, in order:
- 15 December 2025: noindex and JavaScript. If the original HTML includes a noindex robots tag, Google may not render the page at all. So a script that removes the noindex later may never run for Google.
- 17 December 2025: canonicals and JavaScript. New best practices say the canonical should be the same in the raw HTML and the rendered page, or only set once by JavaScript. Changing it during rendering sends conflicting signals.
- 18 December 2025: non-200 status codes. Pages returning 200 are sent to rendering; pages returning other codes, such as a 404, might not be. A single-page app that shows a "not found" message but returns 200 creates soft 404s instead.
- 3 February 2026: file size. Googlebot fetches the first 2MB of an HTML file. Huge inline data blobs can push real content past the cut-off.
- 4 March 2026: cleanup. Google removed outdated information about JavaScript and accessibility from its JavaScript SEO basics page, leaving the guide focused on crawling, rendering and indexing.
Search interest: Google Trends, 2025 to March 2026
We compared "javascript seo", "server side rendering" and "client side rendering" in Google Trends (worldwide, web search, data to 1 March 2026). Scores are relative; 100 is the busiest week for any of the three in five years.
- SEO interest caught up with developer interest. "javascript seo" now regularly matches or beats "server side rendering", a mostly developer term.
- Busy weeks match Google's changes. Interest was high through December 2025 and February 2026, as the documentation updates landed.
- The August 2025 peak needs care. Several SEO terms jumped in the same week, so I'd lean on the 12-month averages rather than that single high.
Which rendering approach is safest?
Server-side rendering or static generation is the safest default for pages you want to rank. Client-side rendering can work, but leaves more room for mistakes.
| Approach | What Google gets first | SEO risk | Best for |
|---|---|---|---|
| Static generation (SSG) | Full HTML | Lowest | Marketing pages, blogs, docs |
| Server-side rendering (SSR) | Full HTML per request | Low | Product and listing pages that change often |
| Hybrid / partial hydration | HTML plus interactive parts | Low to medium | Most modern frameworks' defaults |
| Client-side rendering (CSR) | Mostly an empty shell | Medium to high | Logged-in apps, dashboards (not SEO pages) |
If a page needs to rank, its main content, title, meta robots, canonical and internal links should be in the HTML the server sends. JavaScript can then make it interactive.
How Google processes a JavaScript page
Each stage has a point where things can go wrong.
How to make a JavaScript site indexable: 9 steps
Work through these with your developers. Most are one-time template fixes.
-
Render key pages on the server
Use SSR or static generation for anything you want to rank: home, categories, products, articles, location pages. Most frameworks (Next.js, Nuxt, SvelteKit, Astro) support this out of the box.
-
Return honest status codes
A missing product should return 404 or 410, not a 200 with "not found" text. Google may not render non-200 pages, so don't rely on JavaScript to show or fix anything on them.
-
Never use JavaScript to remove a noindex
If the HTML says noindex, Google may stop there. Decide indexability on the server and send the right tag from the start.
-
Keep canonicals consistent
Put the canonical in the server HTML and don't change it client-side. If JavaScript must set it, set it once and make sure the raw HTML doesn't contain a conflicting one.
-
Use real links
Navigation and pagination should be
<a href>elements. Click handlers on divs and buttons aren't links to Google. Our pagination guide shows how to keep load-more patterns crawlable. -
Use the History API, not hash routes
URLs like
/products/blue-mugwork;/#/products/blue-muggenerally doesn't, because Google ignores most fragments. -
Keep HTML lean
Large inline JSON state, repeated SVG and bloated component output can approach the 2MB cut-off on big listing pages. Move data to separate requests where you can.
-
Don't block what Google needs to render
Check robots.txt isn't blocking JavaScript bundles, CSS or API endpoints the page needs to display its main content.
-
Test like Google
Use URL Inspection in Search Console to view the rendered HTML and screenshot. Compare the raw HTML (view source) with the rendered DOM for title, canonical, robots and main content.
JavaScript SEO checklist
Run this on each template type.
JavaScript template check
- Main content present in server HTML
- Title and meta description in server HTML
- Correct HTTP status codes, no soft 404s
- No noindex that JavaScript later removes
- Same canonical in raw and rendered HTML
- Internal links are real <a href> elements
- Clean URLs without hash routing
- HTML comfortably under 2MB
- JS and CSS not blocked in robots.txt
- Rendered page checked in URL Inspection
Examples by site type
Where JavaScript causes problems depends on what the site does.
Online stores on headless platforms
Headless Shopify or custom React storefronts often render product pages client-side by default. Switch product and category routes to SSR, make sure discontinued products return 404 or redirect, and keep structured data in the server HTML.
SaaS marketing sites
Marketing pages built in the same app as the product sometimes inherit client-side rendering. Split them out or pre-render them. Your login area can stay client-side.
Publishers
Article bodies, bylines and dates should be in the HTML. Infinite "next article" loading needs each article to keep its own URL and canonical.
Local businesses on site builders
Most builders now render on the server. The common issues are pop-up widgets and booking embeds that inject content late. Keep your address, services and contact details as plain HTML text.
A 90-day JavaScript SEO plan
Start with diagnosis, then fix templates in order of business value.
From mixed signals to clean rendering in three phases
Diagnose
- Compare raw and rendered HTML per template
- Check status codes for error states
- Review indexing reports in Search Console
Fix
- Move SEO pages to SSR or static
- Fix noindex and canonical logic
- Replace JS-only links
Guard
- Add rendering checks to releases
- Monitor indexed page counts
- Trim heavy HTML on list pages
JavaScript SEO mistakes
These come up again and again on modern sites.
- Soft 404s from single-page apps. "Page not found" text with a 200 status.
- Noindex as a placeholder. A template ships with noindex and JavaScript flips it later. Google may never see the flip.
- Client-side canonical rewrites. The raw HTML says one thing, the rendered page another.
- Links that aren't links. Buttons and divs with click handlers in navigation.
- Testing only in a browser. What you see isn't always what Googlebot gets. Use URL Inspection.
- Lazy-loading the main content. If the article text or product description only loads when a visitor scrolls or clicks a tab, Google may index a page with almost nothing on it. Load primary content up front and lazy-load only the extras.
Frequently asked questions
Can Google index JavaScript content?
Yes. Google renders pages in a headless Chrome browser and indexes the result. Problems come from mixed signals, such as a noindex in the original HTML, a canonical that changes during rendering, or wrong status codes, rather than JavaScript itself.
Does Google render pages that return a 404?
Not necessarily. Google's documentation, updated on 18 December 2025, says pages with a 200 status are sent to rendering but pages with non-200 codes might not be. Return correct status codes from the server.
Can I remove a noindex tag with JavaScript?
Don't rely on it. Google clarified in December 2025 that if the original HTML contains noindex, it may skip rendering, so JavaScript that removes the tag may never run. Set indexability on the server.
Is server-side rendering required for SEO?
Not strictly, but it's the safest choice for pages you want to rank. Server-side rendering or static generation puts content, links and tags in the first HTML response, which removes most JavaScript SEO risks.
How do I check what Google sees on a JavaScript page?
Use the URL Inspection tool in Google Search Console and view the rendered HTML and screenshot. Compare it with the page's raw HTML for title, canonical, robots tags and main content.
The bottom line
JavaScript isn't the enemy of SEO; ambiguity is. Google's winter documentation changes all point the same way: decide status codes, indexability and canonicals on the server, send real content and links in the first response, and let JavaScript add interactivity on top. Fix those templates once and most JavaScript SEO problems disappear. Our website development team builds and audits JavaScript sites with this in mind. Book a free consultation and we'll look at your templates.
Sources
- Google Trends, worldwide web search for "javascript seo", "server side rendering" and "client side rendering", data to 1 March 2026.
- Google Search Central, "Understand the JavaScript SEO basics". developers.google.com
- Google Search Central, "Latest documentation updates" (entries 15, 17 and 18 December 2025; 3 February and 4 March 2026). developers.google.com
- Search Engine Roundtable, "Google JavaScript doc now says non-200 HTTP status code might not be rendered", December 2025. seroundtable.com
- Search Engine Journal, "Google warns noindex can block JavaScript from running", December 2025. searchenginejournal.com
- HTTP Archive, Web Almanac 2025, SEO chapter (raw vs rendered canonicals). almanac.httparchive.org
- Search Engine Journal, "Google updates Googlebot file size limit docs", February 2026. searchenginejournal.com
This article is for general information only and is not professional advice. Tools, prices and platform rules change often, so please check official sources before acting on it. See our Terms & Conditions.
Is your JavaScript site fully indexed?
Talk to our experts. Your first consultation is free.
