عWork with me
SEO glossary

JavaScript SEO

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

JavaScript SEO
SSRWho builds the page?Server, every requestWhat arrives firstFull HTMLSSGWho builds the page?Build time, onceWhat arrives firstFull HTMLCSRWho builds the page?The visitor’s browserWhat arrives firstNear-empty shell
The more content is in the first HTML, the easier it is for a crawler to read without running JavaScript.

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

  1. Test each template with URL Inspection and a raw versus rendered comparison.
  2. Confirm robots.txt does not block scripts and styles needed to render the page.
  3. Check that navigation uses real URLs and that infinite scroll has paginated links.
  4. 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.

Sources

Work with me

Need help with this on your site? Tell me about it.

Work with me
Book a free audit call

Work with me

Tell me about your site and goals. I usually reply within 24 hours.

Your message comes straight to me. I usually reply within 24 hours.

Esc

↑↓ move · Enter open · Esc close