NEWOur agents now make the SEO fixes on your site and check what worked →

JavaScript SEO Checklist for React and Next.js

/

Google renders JavaScript, but rendering can be skipped or fail, and many AI crawlers do not run JavaScript at all. Put titles, canonicals, main content and links in the server HTML, give every view a real URL with the History API (not # fragments), use real <a href> links, and make error routes return a 404 status or a noindex tag.

Free spreadsheet

Get the Technical SEO Checklist

We email you the technical SEO checklist now, then 3 short emails on using it. Unsubscribe in one click. We never sell your data. Privacy

This is the developer deep dive behind section 4 of our free technical SEO checklist.

How Google Processes a JavaScript Page

Google works in three phases: crawling, rendering and indexing (Google, JavaScript SEO basics, updated March 4, 2026).

  1. Crawl. Googlebot fetches the URL and reads the HTML the server sent. It finds links in that HTML.
  2. Render. Pages that return a 200 status go into a render queue, where a headless Chromium runs your JavaScript. Google notes that pages with a non-200 status may not be rendered at all.
  3. Index. Google indexes the rendered HTML.

Two things follow. Anything only in the rendered version arrives later and depends on rendering working. And a crawler that never renders, which includes many AI search bots, only ever sees step 1.

Rendering Options Compared

ApproachWhat the crawler gets firstSEO riskTypical tools
Client-side rendering (CSR)An almost empty HTML shellHigh: content and links depend on renderingCreate React App style SPAs, plain Vue or Angular SPAs
Server-side rendering (SSR)Full HTML for every requestLowNext.js, Nuxt, Remix, SvelteKit, Angular SSR
Static generation (SSG)Full HTML built ahead of timeLowestNext.js static export, Astro, Gatsby, Eleventy
Hybrid (SSR or SSG, then hydrate)Full HTML, then JavaScript takes overLow, if the server HTML is completeMost modern frameworks by default

Google calls dynamic rendering (serving bots a different version) a workaround, not a long-term solution. Prefer SSR or static generation.

The Checklist: 12 Checks with a Test for Each

#CheckHow to testFix
1Main content is in the server HTMLcurl -s https://site.com/page and search for a sentence from the pageSSR or static generation for indexable templates
2One <title> and meta description per URL, uniqueView source, then URL Inspection > View tested pageSet them on the server per route (Next.js metadata, Nuxt useHead)
3Canonical in the server HTML and not changed by JavaScriptCompare the raw HTML with the rendered HTMLGoogle says JavaScript should not change the canonical to a different URL than the one in the original HTML
4Links are <a href="/path">Inspect your nav, pagination and product cardsReplace onclick handlers and <span> links with real anchors
5Every view has its own URLClick through the app and watch the address barUse the History API. Google cannot reliably resolve #/ fragment routes
6Unknown routes return 404curl -I https://site.com/does-not-existServer returns 404, or JavaScript redirects to a URL that does, or adds noindex
7No noindex in the server HTML that JavaScript later removesSearch the raw HTML for noindexGoogle may skip rendering when it sees noindex, so the removal never runs. Decide on the server
8JavaScript and API files are not blockedrobots.txt and URL Inspection > Page resourcesGoogle will not render JavaScript from blocked files
9Lazy-loaded content loads without scrolling or clickingRendered HTML in URL InspectionLoad in the viewport with IntersectionObserver or native loading="lazy", never only on scroll events
10Bundle file names are fingerprintedCheck that main.js URLs change when content changesUse hashed names like main.2bb85551.js so Google does not use a stale cached file
11Structured data present after renderingRich Results Test on one URL per templateOutput JSON-LD on the server where possible
12Status codes are real, not shown only in the pagecurl -I on a deleted productSend 404 or 410 for gone pages and 301 for moved ones from the server

Checks 3, 5, 6, 7, 8 and 10 come straight from Google's JavaScript SEO basics page linked above.

Soft 404s: The Most Common SPA Problem

A single-page app often answers every URL with 200 and the same shell, then shows "Not found" with JavaScript. Google sees a 200 page with nothing useful on it and reports it as a soft 404, or worse, indexes it. Google gives two fixes: redirect with JavaScript to a URL where the server returns a 404, or add <meta name="robots" content="noindex"> to error views with JavaScript. If your framework supports it, a real server 404 is cleaner than both.

The Noindex Trap

Teams sometimes ship noindex in the HTML of a staging build and plan to remove it with JavaScript in production. Google says that when it sees noindex it may skip rendering, so the script that removes the tag never runs and the page stays out of the index. Set robots tags on the server, per environment.

Framework Notes

  • Next.js: the App Router renders on the server by default. Use the metadata API or generateMetadata for titles, descriptions and canonicals, and notFound() so missing pages return 404. Be careful with pages marked "use client" at the top level that fetch their main content in the browser.
  • Nuxt: SSR is on by default. Use useHead or useSeoMeta, and throw a 404 error in data fetching for missing records.
  • Astro: static HTML by default with islands of JavaScript. Usually the lowest risk.
  • Plain React or Vue SPA: the highest risk. Consider prerendering the public pages or moving them to a framework with SSR.
  • Angular: use Angular SSR for public routes.

AI Crawlers Read the Raw HTML

Google renders JavaScript. Many AI search crawlers fetch the HTML and do not. If check 1 fails, assistants like ChatGPT search or Perplexity may see an empty page and never cite you. See robots.txt for AI crawlers for which bots to let in.

Test Every Release in Five Minutes

  1. curl -s one URL per template and grep for the H1 and a sentence of body text.
  2. curl -I a made-up URL and confirm a 404.
  3. URL Inspection > Test live URL on one page per template. Compare the screenshot with the real page.
  4. Rich Results Test on the product or article template.
  5. Check Search Console > Indexing > Pages a week later for new soft 404s or "Crawled, currently not indexed" spikes.

How to Use This with an AI Assistant

Connect SEOmatic at https://seomatic.ai/mcp and ask: "Run check_site on mysite.com and tell me if my pages only render with JavaScript. Then sign me in with connect_seomatic and use site_pages (action: crawl) on one URL per template to show the title, canonical, headings and links in the HTML." check_site is free and needs no sign-in.

Let the Agents Fix the Technical Issues

SEOmatic's AI agents read your own Search Console data and fix technical issues directly in your CMS:

  • Redirects and broken links
  • Canonicals, noindex tags and robots.txt rules
  • Schema and sitemap submission

Each change can wait for your approval, one click undoes it, and the agents check it against how the rest of your site did. What they can change depends on your platform, and you see the full list before anything runs.

14-Day Trial for $1, credited to your first payment.

Frequently Asked Questions

digi-business-uk

Each local area page used to take us half a day to create and optimize.


With SEOmatic, we can create hundreds of pages in the same time, which helps our clients make the best use of their budget.


It's transformed how we deliver scalable SEO solutions.

will-hawkins

Will Hawkins

Marketing Director, Digi-Business UK

Give Your Site an SEO Team

Agents read your Search Console data, do the work, and prove what actually moved. You decide what ships.

  • You decide what ships
  • Verified live
  • One-click rollback

14-Day Trial for $1, credited to your first payment.