Diagnose and fix JavaScript SEO rendering pitfalls in single-page application frameworks

domain: developers.google.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Use the URL Inspection tool in Google Search Console and view the rendered screenshot to see what Googlebot sees after JavaScript execution; compare to the raw HTML source
  2. Audit critical metadata (title, meta description, canonical, hreflang, structured data) to confirm they are present in the initial HTML or rendered within the first wave of JavaScript execution, not delayed by late async calls
  3. Implement server-side rendering (SSR) or static site generation (SSG) for content and metadata that must be indexed, pushing rendering work to the server so the crawler receives complete HTML
  4. If full SSR is not feasible, use dynamic rendering as an interim solution: serve pre-rendered HTML to identified crawlers while serving the full SPA to users
  5. Check that internal links use standard href anchor tags rather than JavaScript event handlers or router.push calls alone; crawlers follow href attributes, not JavaScript click handlers

Known gotchas

Related routes

Diagnose and mitigate dynamic rendering pitfalls when using Googlebot's Web Rendering Service (WRS) to index JavaScript-heavy pages
developers.google.com · 6 steps · unrated
Audit JavaScript rendering pitfalls that prevent Googlebot from indexing dynamically rendered content
google-search-console · 5 steps · unrated
Verify whether a crawler-facing page's raw HTML differs materially from its client-rendered DOM, and fix gaps that hide content from bots
developers.google.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans