Quick Answer: JavaScript rendering is the step where a browser runs scripts to build the visible page. Many crawlers fetch only the initial HTML, so any answer, price or definition injected later by JavaScript may never be read. Put your citable content in the server-delivered HTML and test it with a plain fetch.
You publish a well-structured page, it looks right in your browser, and AI answer engines still never quote it. One common cause is that the useful text only exists after JavaScript runs, and the crawler that visited never ran it. This article explains how that gap appears, how to measure it in a few minutes, and how to close it without rebuilding your site.
What is JavaScript rendering and why does it matter for AI crawlers?
JavaScript rendering is the process of executing a page's scripts so the browser can build the final content a person sees. It matters for AI crawlers because a crawler that does not run scripts only sees the first HTML response, which on many modern sites is a nearly empty shell plus a script bundle.
Search engines and AI systems differ in how much rendering they do, and the behaviour of each changes over time. Google documents that it processes JavaScript in a separate rendering stage after the initial fetch, as described in Google's JavaScript SEO basics. Other crawlers publish little or nothing about rendering, so the safe assumption is that your raw HTML is the version most likely to be read.
For the wider picture of how bots discover and store pages, see how AI crawlers actually index your site.
Which kinds of content are most likely to be invisible?
Content is at risk when it is created, fetched or revealed by client-side code after the page loads. The text is real to a visitor, but absent from the HTML the server first sends.
These patterns cause most of the damage:
- Single-page app shells. The server returns a root
<div>and a bundle, and every heading and paragraph is built in the browser. - Content loaded by API calls. Product specs, pricing tables, reviews and FAQs fetched after load from a JSON endpoint.
- Tabs and accordions that inject text on click. If the panel text is not in the HTML until a user interacts, a crawler never sees it.
- Lazy-loaded sections. Blocks that load only when scrolled into view may never trigger for a bot that does not scroll.
- Schema added by a tag manager. JSON-LD injected by a script is subject to the same rendering risk as the visible text.
Notice the common thread: the content that answers questions, such as definitions, prices and comparisons, is often the content most likely to be loaded dynamically.
How do I test what an AI crawler actually receives?
Fetch the page without a browser and read what comes back. If your key sentences are not in that response, a non-rendering crawler cannot read them.
- Request the URL with a plain HTTP client, for example
curl -sS https://example.com/page, and save the output. - Search the saved HTML for the first sentence of your main answer, your H2 text and your price or definition.
- Search for your JSON-LD block and confirm it appears in the raw response, not only in the browser's inspector.
- Repeat the fetch with a crawler's user-agent string, because some bot-management rules serve different responses to bots.
- Compare the raw text against the rendered page and list every block that is missing.
The browser's "view source" shows the raw response, while the element inspector shows the rendered result. Mixing those two up is the most frequent mistake in this kind of audit. If the fetch returns a challenge page or a block instead of your content, that is a different problem, covered in how CDN bot management rules silently block AI crawlers.
What is the difference between client-side, server-side and static rendering?
The three approaches differ in where the HTML is built and therefore in what a crawler receives on its first request. Server-side and static rendering deliver finished content immediately, while client-side rendering delivers a shell.
| Approach | Where HTML is built | Content in first response | Crawler risk |
|---|---|---|---|
| Client-side rendering | In the visitor's browser | Shell and scripts only | High |
| Server-side rendering | On the server per request | Full content | Low |
| Static generation | At build time | Full content | Low |
| Hybrid or hydrated | Server first, then enhanced in browser | Full content if configured correctly | Low to medium |
Hybrid setups deserve a careful check. A framework can support server rendering and still ship a page where one component, such as a pricing table, is marked client-only. The page passes a quick glance and fails the section-level test above.
How do I fix JS-only content without rebuilding the site?
Start with the smallest change that puts the citable text into the initial HTML. A full migration is rarely the first move.
- Render the answer blocks on the server. Definitions, summaries, prices and comparison tables should be in the server response even if the rest of the page stays dynamic.
- Pre-render the top pages. Static generation of your highest-value pages gives crawlers finished HTML while the app continues to run normally for visitors.
- Output JSON-LD in the template. Print structured data from the server rather than injecting it with a script or tag manager.
- Put tab and accordion text in the markup. Hide it visually with CSS if you must, but keep the words in the HTML.
- Add plain links. Make navigation use real anchor elements with
hrefvalues so crawlers can find deeper pages.
A dynamic-rendering service that serves a pre-built copy to bots is sometimes used as a stopgap. Treat it as temporary, because it creates a second version of your page that can drift from the first and is harder to verify.
Should I use dynamic rendering for AI bots?
Usually no, unless you have no practical way to ship server-rendered HTML soon. Serving bots a different version than visitors adds a maintenance burden, and a stale bot copy can feed engines outdated prices or claims.
If you do use it, keep the bot version generated from the same data as the live page, and re-run the raw fetch test after every release. Permanent fixes in the template are easier to trust than a parallel pipeline.
How do robots.txt and llms.txt interact with rendering?
They are separate controls. Rendering decides whether a crawler can read a page it is allowed to fetch, while robots.txt decides whether it may fetch it at all.
One rendering-specific trap is blocking the script or API paths in robots.txt. A rendering crawler that cannot load your JavaScript bundle or data endpoint will build an empty page even though the HTML itself is allowed. Review your rules alongside how robots.txt, llms.txt and AGENTS.md work together, and remember that a llms.txt file points to content but cannot make unreadable content readable.
How do I get help if my team cannot fix this alone?
If the fix touches the framework or build pipeline, you will need a developer and someone who can verify the result against crawler behaviour. Many teams find the scoping step the hardest part, so write down the pages affected and the raw-fetch evidence first.
The AEO Hub is a directory, not an agency, so it does not carry out this work itself. It lists vetted agencies and freelancers, and you can compare them yourself on the agencies directory and the freelancers page. Listing is free for buyers, and nothing here guarantees any citation or ranking outcome.
A fair objection is that fixing rendering looks like engineering work with an uncertain payoff. That is true: server-rendered text does not force any engine to cite you. What it does is remove a technical reason for being skipped, which is cheaper to fix than a content problem you cannot see.
The bottom line
If an answer is not in the HTML your server sends first, you should assume some crawlers never read it. Run the raw-fetch test on your five most important pages today, list the missing blocks, and fix those first. When you want a second pair of eyes, get matched with vetted AEO providers by describing the pages and the evidence you collected, then review the responses yourself.