Why Pre-rendering Matters
Modern JavaScript frameworks (React, Vue, Angular, Svelte) build single-page applications where the initial HTML is often just an empty shell — a <div id="root"></div> and a script tag. The real content is injected at runtime by JavaScript.
This creates a problem for crawlers: many bots don't execute JavaScript. And even for the ones that do (like Googlebot), rendering is a slow, second-wave process that can fail.
The Two-Wave Indexing Problem
Googlebot processes pages in two waves:
- Wave 1 (HTML): Fetches raw HTML immediately and extracts links, meta tags, and content that's in the initial response.
- Wave 2 (Rendering): Queues the page for a headless Chrome render — sometimes days later, sometimes never if it fails.
Between the two waves, Google may show an empty or partial result. Worse, if rendering fails (script errors, timeouts, blocked resources), it stays empty forever.
What This Tool Detects
- Empty body content — when the raw HTML contains little or no readable text (common in SPAs).
- SPA framework signatures — React, Vue, Angular, Next.js, Nuxt, Svelte, Gatsby and Astro detection.
- Missing meta tags — title, description, canonical, OpenGraph that crawlers can't find because they're injected by JS.
- Root container issues — an empty
#root,#app, or<app-root>with no fallback content. - Missing noscript — no fallback for users (or bots) without JS.
- Content-to-markup ratio — how much of the raw HTML is actual visible text.
- JS bundle size — proxy for how much depends on runtime execution.
- Missing structured data — JSON-LD that should be in raw HTML.
Common Problems and Fixes
| Problem | Symptom | Fix |
|---|---|---|
| Empty body in raw HTML | SERP shows blank preview | Server-side render (SSR) or static generation |
| JS-injected meta tags | Social shares show wrong title | Emit meta tags in raw HTML (SSR or template) |
| No content without JS | Bot sees empty page | Add pre-rendering service or switch to SSR |
| Client-side routing only | Crawler doesn't find sub-pages | Use SSR + real <a href> links |
| Robots.txt blocks JS/CSS | Google can't render the page | Allow /static/, /_next/, etc. |
| Missing OG image | Blank share card | Add og:image in raw HTML |
How to Test Pre-rendering Properly
- View raw source: Open the page, press
Ctrl+U(Windows) orCmd+Option+U(Mac). This shows the HTML before JavaScript. - Compare with DevTools: Right-click → Inspect. This shows the DOM after JavaScript has run.
- Analyze raw HTML here: Paste it in the Analyze tab and see what crawlers get.
- Compare both: Use the Compare tab to see exactly what changes.
- Cross-check with Google: Search Console → URL Inspection → Test Live URL → View Tested Page → HTML tab. That's the definitive answer for Googlebot.
Best Practices
- Prefer SSR/SSG over pre-rendering — modern frameworks like Next.js, Nuxt and SvelteKit make it easy, and there's no added latency.
- Always emit critical meta tags in raw HTML — title, description, canonical, og:*, twitter:*.
- Use real anchor tags —
<a href="/about">, not<div onclick="navigate('/about')">. - Include a
<noscript>fallback — a short message at minimum, or basic navigation. - Add structured data (JSON-LD) to raw HTML — don't inject it later.
- Test with Google Rich Results Test and URL Inspection — those actually run Google's renderer.
- Monitor Search Console Coverage — "Crawled - currently not indexed" is often a JS-rendering symptom.
Pro Tip: Even if Googlebot renders your JavaScript, other crawlers (Facebook, LinkedIn, WhatsApp, Slack, Discord, AI bots) don't. If you want rich link previews or AI citations, your meta tags and key content must be in the raw HTML response.