JavaScript SEO
Making sure sites built with JavaScript frameworks can be crawled, rendered, indexed and understood by search engines and AI systems.

What it is
Google processes JavaScript pages in stages: crawl, render, then index. Problems appear when content, links or directives exist only after rendering, when resources are blocked, or when routing does not produce real URLs and status codes. The fixes are mostly about rendering strategy, crawlable links and correct responses.
Why it matters
Modern sites often rely on frameworks such as React, Next.js or Vue. Without checking rendering, a page can look perfect to visitors and still be thin, delayed or missing in search.
Common mistakes
- Blocking JavaScript or CSS files in robots.txt
- Hash-based URLs and navigation that do not create real URLs
- Lazy loading that needs user interaction to reveal content
- Assuming that what works in a browser is what a crawler sees
How I handle it
I audit each template with raw versus rendered comparisons and URL Inspection, list every gap, and write a brief that names the exact routes and rules to change.
How to check it
- Test each template with URL Inspection and a raw versus rendered comparison.
- Confirm robots.txt does not block scripts and styles needed to render the page.
- Check that navigation uses real URLs and that infinite scroll has paginated links.
- Measure how much JavaScript loads and how it affects INP.
Illustrative example
Example scenario: a single-page app changes the address bar with hash fragments, so every view has the same crawlable URL. Switching to real path-based URLs with server-rendered content gives each view its own indexable page.
Frequently asked questions
Is JavaScript bad for SEO?
No. Problems come from how it is used. Sites can rank well when key content and directives do not depend on client-side execution.
How do I test what Google sees?
Use the URL Inspection tool in Search Console to view the rendered page, and compare it with your raw HTML.
Related terms
Related services
Sources
- Understand JavaScript SEO basics · Google Search Central
- Fix search-related JavaScript problems · Google Search Central