JavaScript rendering · Raw and rendered HTML

Noindex only in the raw HTML

The raw HTML of this page has a robots noindex meta tag, and a script removes it after load. Google honours the noindex and may never render.

How this page is built

The server sends <meta name="robots" content="noindex">. A script in the head removes the tag. Crawlers that read only the raw HTML report the page as noindex, which is the property this test relies on. The page is left out of the sitemap so that the sitemap does not list a noindex page.

Why it matters

When Google finds noindex in the raw HTML, it may skip rendering altogether, so the script that removes the tag never runs. The page stays out of the index even though it looks indexable in a browser. Google’s documentation warns about this exact pattern.

It often happens on JavaScript sites that send noindex while data loads, planning to remove it once the page is ready.

How to check it

Compare the raw HTML (view source) with the rendered HTML (the Elements panel in developer tools, or the URL Inspection tool in Search Console). Crawl tools that render JavaScript can store both versions and report differences between them. Here, the raw HTML has a noindex directive and the rendered HTML has none. Search Console’s URL Inspection tool shows which one Google saw.

How to fix it

Send the final robots directive in the raw HTML. If a page should be indexed, it must not have noindex in the first response.

Back to all tests