How to check what Google really sees on a JavaScript site
A step-by-step method to compare the HTML a server sends with what a crawler renders, with the tools to use and what each gap means.

In short: compare three things for every important template: the HTML the server sends, the HTML after rendering, and what Search Console says Google rendered. The gaps tell you what depends on JavaScript. This article is part of the JavaScript SEO guide.
Why the check matters
A page can look perfect in a browser and still be thin to a crawler. Browsers run all your scripts, wait for data and let users click. A crawler fetches the HTML, queues the page for rendering and indexes what the rendered result contains. If content, links, tags or status codes only appear after an action, a failed request or a blocked file, they may never be indexed. The aim is to find that out before rankings do.
Step 1: read the raw HTML
This is what the server sends before any script runs.
- Open
view-source:for the URL in the browser, or fetch it with a command-line tool:
curl -s https://example.com/page/ | head -100
- Search the source for the things that matter: the
<title>, the meta description, the canonical, the robots meta tag, the<h1>, the main text and your internal links.
If the body is an empty container such as <div id="app"></div> and the content arrives later, the page is client-side rendered. That is the first thing to know.
Step 2: read the rendered HTML in the browser
- In DevTools, open the Elements panel. It shows the DOM after scripts have run.
- Compare it with the source: which headings, paragraphs, links and tags exist only here?
- Open the Network panel and reload. Look at the API requests that deliver the content. Failures, slow responses and blocked requests show up here. Chrome’s guide to inspecting network activity shows how to read this panel.
- Turn JavaScript off (DevTools command menu, “Disable JavaScript”) and reload. What is left is what a crawler without JavaScript sees.
Step 3: ask Google what it rendered
Use the URL Inspection tool in Search Console, on a URL from a property you own.
- Paste the URL and read the indexed version first: whether it is indexed, the selected canonical and the last crawl.
- Click Test live URL, then View tested page.
- Read the HTML tab. This is the rendered HTML from Google’s system. Search it for the main text and your links.
- Look at the Screenshot tab for obviously empty or broken layouts.
- Open More info to see page resources that failed to load and JavaScript console messages. Blocked files and script errors that matter show up here.
For content, structured data and rendered output on any public URL, the Rich Results Test shows the rendered HTML too.
Step 4: compare across a whole template
One URL proves little. Crawl a sample of each template twice with a crawler that supports JavaScript rendering: once without rendering and once with it. Compare:
| Field | Raw HTML | Rendered HTML | What a gap means |
|---|---|---|---|
| Title and description | present? | present? | If only set by script, they depend on rendering |
| Canonical | present? | same value? | A different or missing value is a conflict |
| Robots meta | present? | same value? | A changed noindex may not be seen |
| H1 and main text | present? | present? | A big gap means content depends on JavaScript |
| Internal links | count | count | Links added after rendering are found later, or not at all |
| Word count | number | number | A very large difference is a risk signal |
| Status code | 200? | n/a | Error views returning 200 are soft 404s |
What the gaps usually mean
- Everything appears only after rendering. The site is client-side rendered. Decide whether important templates should move to the server or to build time. See the JavaScript SEO guide for the options.
- Content appears for you but not in Google’s rendered HTML. Look at failed resources and console errors. Causes include blocked API paths, content that needs a click or scroll, or scripts that fail for a crawler.
- Links only exist as buttons. Replace them with real
<a href>links. - A page returns 200 but shows “not found”. That is a soft 404.
- Titles or canonicals change after rendering. Google may see both versions. Set them once, in the initial HTML.
- Rendered HTML is fine but the page is not indexed. Rendering is not the problem. Check indexing, canonicals and quality instead.
A worked scenario
A category page lists products from an API. In the browser it shows 24 products. The page source contains an empty product grid. URL Inspection’s rendered HTML shows an empty grid too, and the console messages list a failed request to the API path, which robots.txt blocks. The fix is not a rendering rewrite. It is to allow that API path for Googlebot, then re-test. This is a hypothetical example of a common pattern, and it shows why the console messages are worth reading.
Make it routine
- Keep a short list of templates and one test URL for each.
- Re-test after releases that touch routing, rendering or robots.txt.
- Record what you found, so a regression is obvious.
- Keep a crawler comparison, raw versus rendered, as part of your monthly checks.
I can bring JavaScript SEO audit support to this specific problem, contact me to arrange it.
FAQ
Is the page source the same as what Google indexes?
Not on a JavaScript site. The source is what the server sent. Google indexes the HTML after a headless browser has run the scripts. The difference between the two is what you need to inspect.
Which single test is the most reliable?
The URL Inspection tool in Search Console, with a live test, because it shows the rendered HTML and screenshot from Google's own system. Use the other methods to find patterns across many pages.
Should I test every page?
No. Test one or two examples of every template, since pages built from the same template fail in the same way.
Sources
- URL Inspection tool · Google Search Console Help
- Rich Results Test · Google
- Understand JavaScript SEO basics · Google Search Central
- Fix search-related JavaScript problems · Google Search Central
- Inspect network activity (Chrome DevTools) · Chrome for Developers
- Robots.txt introduction and guide · Google Search Central
Keep reading
- SSR, SSG or CSR: how to choose for SEOA practical way to pick a rendering approach by how often content changes, how personalized it is and how much the page matters for search.
- Structured data with JavaScript and Tag ManagerWhen it is safe to generate JSON-LD in the browser or with Google Tag Manager, the risks for products, and how to test and keep it in sync with the page.
- Next.js and Nuxt SEO checklistA framework-level checklist for metadata, rendering modes, status codes, redirects, sitemaps and international routing in Next.js and Nuxt.
Related glossary terms
Want this applied to your site?
Tell me about your site and I’ll suggest the next step.
Work with me Services