The short version: Google and Bing execute JavaScript. Most other crawlers, including nearly all of the AI ones, do not. A site whose content exists only after scripts run is therefore visible to two search engines and largely invisible to everything else. The longer version is about how rendering works, where it fails even for Google, and how to check.
How we got here
For most of the web’s history a crawler was a program that downloaded HTML and read it. Content written into the page by JavaScript did not exist as far as search was concerned.
- 2009. As AJAX applications spread, Google proposed a scheme in which sites using
#!URLs would serve crawlers a pre-rendered HTML snapshot at a special address. It put the burden on the site. - 2014. Google announced that it had begun executing JavaScript and rendering pages itself.
- 2015. It deprecated the AJAX crawling scheme, saying it could generally render pages as a browser would.
- 2019. Rendering had been running on an old browser engine, so modern JavaScript often failed. On 7 May 2019 Google announced the “evergreen” Googlebot, which uses a current version of Chromium and is updated regularly. Bing made the same move that October.
Since 2019 the question for Google has not been whether your JavaScript syntax is supported. It is whether the content appears in the conditions under which Googlebot renders.
How Google processes a JavaScript page
Google’s documentation describes three phases.
- Crawl. Googlebot fetches the URL, checks robots.txt, and reads the HTML response. Links in that HTML are queued for crawling.
- Render. The page goes into a queue for rendering. When resources allow, a headless Chromium loads it, runs the scripts, and produces the rendered HTML.
- Index. The rendered HTML is processed for content and for further links.
Two consequences follow. Content in the initial HTML is available at step 1; content that needs rendering waits for step 2, which may be seconds later or considerably longer. And anything Google must discover through rendered links, such as pages reachable only from a client-side menu, is one more queue away.
Where it fails
These are the recurring causes of content that a browser shows and Google does not index.
Content that needs interaction. Googlebot does not click, type, hover or scroll like a person. Content loaded when a user clicks a tab, presses “load more”, or scrolls to the bottom is not loaded for the crawler. Google’s guidance on lazy loading is to load content when it enters the viewport, using IntersectionObserver or native lazy loading, and not in response to scroll events. For infinite scroll, give each chunk its own paginated URL.
Links that are not links. Google follows <a> elements with an href attribute that resolves to a URL. A <span> or <div> with a click handler, or an <a> without href, is not followed (Google). Client-side routers should produce real anchors and use the History API, not # fragments, for navigation.
Blocked resources. If robots.txt disallows the script files or the API endpoints a page needs, Googlebot cannot render it and sees the empty shell. Check that /static/, /assets/, /api/ and their equivalents are not blocked for pages that depend on them.
Soft 404s in single-page apps. A client-rendered app usually returns status 200 for every URL and then displays a “not found” message with JavaScript. To a crawler that is a real page with thin content. Google’s documentation gives two fixes: redirect with JavaScript to a URL where the server returns a real 404, or add a noindex robots meta tag to error views.
noindex in the initial HTML. If the HTML response contains a robots meta tag with noindex, Google may skip rendering altogether. A script that was meant to remove or change that tag will never run. Do not ship noindex in a template and rely on JavaScript to lift it.
Metadata set too late or not at all. Titles, meta descriptions, canonical links and structured data can be injected with JavaScript, and Google will read them from the rendered page. But a canonical in the raw HTML that disagrees with one set by script sends conflicting signals. Make them agree, or put them only in the server response.
State that does not persist. Googlebot renders each page fresh. It does not keep cookies, local storage or session storage between page loads, and it declines permission prompts. Content gated on a previous visit, a consent choice or a location permission will not appear.
Errors and timeouts. A script error that a user’s browser tolerates, or an API that responds slowly, can leave the rendered page empty. There is a limit to how long rendering waits.
Everything that is not Google
This has become the more important half of the subject.
In December 2024 Vercel and MERJ published an analysis of crawler traffic across Vercel’s network. Their finding on rendering was unambiguous: the crawlers operated by OpenAI, Anthropic, Meta, ByteDance and Perplexity did not execute JavaScript. Some of them downloaded script files, but they did not run them. Of the AI-related crawlers examined, the study reported that Google’s Gemini (which uses Googlebot’s infrastructure) and Apple’s Applebot rendered pages.
The practical meaning is plain. If the text of a page is not in the HTML the server sends, then for the systems behind most AI assistants and AI search products, the page has no text. The same has long been true of social media link previews, many SEO tools, and smaller search engines.
A site can be perfectly indexed in Google and absent from AI answers for this reason alone.
What to build
Google’s recommendation, repeated across its documentation, is to send content in the HTML. In order of robustness:
- Static generation. Pages are built to HTML ahead of time. Nothing depends on a crawler’s capabilities. Right for content that does not change per request.
- Server-side rendering. The server produces full HTML for each request, and scripts then attach interactivity (“hydration”). Every crawler gets the content; users get the application.
- Client-side rendering. The server sends a shell and scripts build the page. Works for Google and Bing with the caveats above. Does not work for most other crawlers.
- Dynamic rendering. Serving pre-rendered HTML to bots and the client-side app to users. Google now describes this as a workaround and not a long-term solution. It adds a second system to maintain and a standing risk that the two versions drift apart.
Most current frameworks do server rendering or static generation by default. The usual problem is not the framework but a single component, a product description, a review list, a price, that fetches its data in the browser when it could have been included in the server response.
A useful rule: anything you want found should be in the response to a plain HTTP request for the URL. Interactivity can be layered on top.
How to test
Look at the raw response. View source (not the element inspector, which shows the rendered DOM), or fetch the page with curl. Search for a sentence of your main content. If it is not there, non-rendering crawlers do not have it.
Use a text-only fetch. Our crawler view tool requests a URL the way a non-rendering crawler does and shows what it gets back: the status, title, meta robots, canonical, headings, links and extracted text, without running any scripts. If the extracted text is empty or is only your navigation, that is what most AI crawlers see.
Check Google’s rendered view. In Search Console, the URL Inspection tool’s live test shows the rendered HTML, a screenshot, the resources that could not be loaded and any JavaScript console errors. This is the authoritative answer for Google specifically. Google’s troubleshooting guide walks through it.
Compare the two. The gap between the raw response and the rendered page is exactly the content that depends on rendering. Decide deliberately whether each item in that gap can afford to be invisible outside Google and Bing.
Disable JavaScript in a browser. Crude, quick and revealing. Navigate your own site with scripts turned off. Whatever you cannot reach, a simple crawler cannot reach either.