Here's the short version: most of the crawlers feeding AI answer engines do not run your JavaScript. They read the raw HTML your server sends and move on. If your content only shows up after a browser executes a script — which is how a lot of modern sites are built — there's a real chance the systems deciding who gets recommended are looking at an empty shell. This isn't a theory about the future. It's happening right now, and it's one of the most common reasons a site that looks great to a human visitor is nowhere to be found when someone asks ChatGPT or Perplexity the exact question that site answers.
I want to walk through why this happens, how to tell if it's happening to you, and what to actually do about it. None of this requires you to be an engineer, but some of it you'll want to hand to one.
Rendering, in plain terms
When you load a web page, two things can happen. In the first, the server sends back a finished HTML document — all your headings, paragraphs, and content are right there in the response. That's server-side rendering. In the second, the server sends back a mostly empty page plus a bundle of JavaScript, and your browser runs that JavaScript to build the content on the fly. That's client-side rendering, and it's the default behavior of a lot of popular frameworks when they're set up without extra care.
A human never notices the difference. Either way, the page fills in and looks normal. But a crawler is not a human sitting in a browser. A crawler makes a request, receives whatever the server sends, and decides whether to spend the considerable computing cost of running your scripts. Google's traditional search crawler will, eventually, render a lot of JavaScript — it built that capability over many years. The newer crawlers behind AI answer engines largely do not, or do so inconsistently. They grab the HTML and go.
So the question that decides your visibility is simple: when a crawler requests your page and reads only the raw HTML, is your content there? If the answer is no, you're betting your entire AI presence on a rendering step that many of these systems skip.
Why the AI crawlers behave this way
Running JavaScript at the scale of the entire web is expensive. Google spent the better part of a decade and enormous infrastructure getting to the point where its search crawler renders pages reliably, and even then it treats rendering as a second pass that can lag behind the initial crawl. The companies building AI answer engines are newer to crawling, and many of them have made the reasonable engineering decision to start with the cheap, fast path: read the HTML as delivered.
There's a second layer to this. A lot of what feeds AI answers isn't a live crawl at all — it's training data and retrieval from indexes that were built by reading raw HTML in bulk. When one of these systems retrieves a page during a live answer, it may fetch your URL and parse the response in a fraction of a second. There's no patient second rendering pass. If your words aren't in that first response, they don't make it into the answer.
My read, and this is a read rather than a guarantee, is that rendering support among AI crawlers will improve over time the same way Google's did. But "eventually" is not a strategy when a competitor whose content is in plain HTML is getting cited today and you're not.
How to tell if this is hurting you
You don't need special tools to run the basic check. Here are three ways to see your page the way a non-rendering crawler sees it, from easiest to most thorough.
View the source, not the page. In your browser, right-click a page and choose "View Page Source" (not "Inspect"). This shows you the raw HTML the server sent — before any JavaScript ran. Use your browser's find function to search that source for a distinctive sentence from your article or a key product detail. If you can't find your own words in the source, a crawler reading only the HTML can't either. "Inspect," by contrast, shows you the rendered page after scripts run, which is exactly the view these crawlers don't get, so it will mislead you here.
Disable JavaScript and reload. Most browsers let you turn JavaScript off in settings or through a developer toggle. Turn it off, reload the page, and look at what's left. If you see your headline, your body copy, and your key facts, you're in good shape. If you see a spinner, a blank area, or a "please enable JavaScript" message where your content should be, that blank is what a non-rendering crawler gets.
Fetch the raw response. If you're comfortable with a terminal, requesting the page directly and reading the returned HTML shows you precisely what a simple crawler receives. Your developer can do this in seconds. The question is always the same: is the actual content in the response, or just scaffolding and script tags?
Run this check on the pages that matter most for being found — your core service and product pages, your best articles, your about page. These are the pages you want cited, and they're the ones worth confirming are readable.
What to do if your content is invisible
The fix is to make sure your meaningful content exists in the HTML the server sends, without depending on the visitor's browser to build it. There are a few established ways to get there, and which one fits depends on how your site is built.
Server-side rendering. The framework builds the full HTML on the server and sends a complete page. Modern versions of the major JavaScript frameworks support this directly; it's often a configuration and deployment choice rather than a rewrite. This is usually the cleanest answer because the crawler and the human get the same complete document.
Static generation. For content that doesn't change on every request — articles, guides, most marketing pages — you can pre-build the pages as finished HTML files ahead of time. They load fast, they're trivially readable by any crawler, and they're cheap to host. For a content-driven authority site, this is frequently the best fit.
Prerendering or hydration done right. Some setups serve a fully rendered HTML snapshot and then let JavaScript "hydrate" it into an interactive app. Done correctly, the crawler gets real content and the user gets interactivity. The failure mode to avoid is a page that ships empty and fills in only after scripts run.
The principle underneath all three: the content you want AI to read should be present in the HTML before a single line of your JavaScript executes. Interactivity, personalization, and fancy transitions can layer on top. The words cannot depend on them.
The traps that catch people
A few specific patterns cause this problem even on sites that are mostly fine. Content loaded only when you scroll — "infinite scroll" and lazy-loaded sections — may never load for a crawler that doesn't scroll. Text rendered inside images, where the words are pixels rather than characters, is invisible to a text crawler regardless of rendering. Content hidden behind a click, like an accordion or a "read more" that only fetches text when expanded, can be missed. And single-page applications that swap content without a real page load can leave crawlers seeing only the first view they landed on.
None of these mean you have to abandon good design. They mean the important text needs to be in the delivered HTML, and the interactive niceties should enhance something that's already there rather than being the only way to reach it.
Why this matters more for AI than it did for search
In traditional search, a page that rendered slowly or depended on JavaScript could still rank — Google would get to it eventually, and you had a ranked list where even position five or ten got clicks. AI answers compress that. When an answer engine assembles a response, it pulls from a small handful of sources it can read quickly and confidently. There's no page two. If your content isn't cleanly readable in that first fast pass, you're not ranked lower — you're frequently absent from the set of sources the answer is built from at all.
That's the real stakes here. This isn't a minor technical optimization that nudges you up a few spots. It's the difference between being a candidate for citation and not being in the room. In the work we do at AIrecommend.ai, a surprising share of "why am I invisible to AI" problems trace back to something this basic: great content that the crawler simply never saw because it lived behind JavaScript.
Check your source. If your words are there, move on to the harder questions of authority and relevance. If they're not, nothing else you do for AI visibility will matter until you fix it — because you can't be recommended for content that, as far as the machine is concerned, doesn't exist.
Key takeaways
- Most AI crawlers read your raw HTML and do not run JavaScript, so content that only appears after scripts execute can be invisible to them.
- Check it yourself: use 'View Page Source' (not 'Inspect') and search for your own words, or disable JavaScript and reload to see what a crawler sees.
- Client-side rendering is the default in many modern frameworks unless someone deliberately configures server-side rendering or static generation.
- Fixes include server-side rendering, static pre-generation, and proper prerendering — the goal is content present in the HTML before any JavaScript runs.
- Watch for specific traps: lazy-loaded sections, text baked into images, content hidden behind clicks, and single-page apps that swap views without a real page load.
- This matters more for AI than classic search, because answer engines build responses from a small set of easily-read sources with no second page to catch you.
Frequently asked questions
Want to be the business AI recommends?
Get a free AI-visibility check — see how ChatGPT, Claude, Gemini and Perplexity talk about you today.