JavaScript rendering · JavaScript content and links

Content added by JavaScript

Four paragraphs on this page are not in the raw HTML. A script writes them into the page after load, so only crawlers that render JavaScript see them.

How this page is built

The section below, headed "Added in the browser", is empty in the raw HTML. A script fills it with four paragraphs, about 200 words, when the page loads. The rest of the page is in the raw HTML as normal.

Added in the browser

Why it matters

Search engines index what they can read. Google renders JavaScript, but rendering happens in a second wave that can come long after the first crawl, and it can fail if scripts time out or are blocked. Bing renders less reliably, and most AI crawlers and many crawl tools do not render at all.

When a significant share of a page’s content is added by JavaScript, its indexing depends on all of that going right.

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. Compare the word count of each, or search the raw HTML for a sentence you can see on the page.

How to fix it

Send the main content in the HTML from the server. Use JavaScript to enhance the page, not to build it. Server-side rendering or pre-rendering lets a JavaScript site do this without a rewrite.

Back to all tests