JavaScript rendering · Raw and rendered HTML

The raw HTML of this page has no H1. A script adds the heading after the page loads, so only crawlers that render JavaScript can see it.

How this page is built

The heading block is empty in the raw HTML. A script at the end of this section creates the H1 and places it at the top of the page. Crawlers that read only the raw HTML report the H1 as missing, which is the same fault seen without rendering.

Why it matters

Crawlers that do not render JavaScript see a page with no main heading, and Google sees it only after rendering. Headings help search engines and screen reader users understand the structure of a page, so relying on a script for the most important one is fragile.

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 no H1 and the rendered HTML has one.

How to fix it

Put the H1 in the HTML the server sends. With a front-end framework, render pages on the server or pre-render them.

Back to all tests