JavaScript SEO: make sure Google and AI see your content

JavaScript SEO: make sure Google and AI see your content

JavaScript SEO is about making sure search engines and AI services can find, render and understand content built with JavaScript frameworks such as React, Vue, Angular or Next.js.

How Google handles JavaScript

Googlebot crawls the HTML, queues the page for rendering in an evergreen Chromium, then indexes the rendered content. Rendering takes resources and time, and script errors can hide content.

AI crawlers are different

Most AI crawlers that fetch content for ChatGPT, Claude and Perplexity do not execute JavaScript. They only see the HTML your server sends.

Rendering methods

MethodSEO
Client-side renderingWeakest
Server-side renderingGood
Static site generationBest for speed and SEO
Hydration (SSR or SSG plus JS)Good, default in Next.js and Nuxt

Dynamic rendering is a workaround Google no longer recommends.

Checklist

Content, titles, meta, canonicals and structured data in the server HTML, real <a href> links, no content only on scroll or click, unique URLs, JS and CSS not blocked, correct status codes. Test with URL inspection, with JavaScript disabled and with Screaming Frog rendering on and off.

Frequently asked questions

Can Google read JavaScript?

Yes, but rendering can be delayed or fail, so key content should be in the server HTML.

Can AI crawlers read JavaScript content?

Most do not execute JavaScript.

Read also

Sources

  1. Google Search Central, JavaScript SEO basics: developers.google.com/search/docs/crawling-indexing/javascript/javascr
  2. Vercel, The rise of the AI crawler: vercel.com/blog/the-rise-of-the-ai-crawler

More about Marius Vestlien Hansen →

Read next

More articles

All articles
Next step

Get in touch for a coffee and a chat about how I can strengthen your business

Book a coffee chat