SEO & AI SEARCH
The "View Source" test: is your website invisible to ChatGPT?
Your website can look beautiful in a browser and still be almost empty to an AI crawler. The reason is JavaScript, and the good news is that you can check for the problem in under a minute.
Why AI crawlers miss content
Many modern websites load their text with JavaScript. Your browser runs that code and builds the page you see. But not every crawler does this.
A December 2024 study by Vercel and MERJ tracked how AI crawlers behaved across Vercel's network. It found that none of the major AI crawlers it measured executed JavaScript. That included OpenAI's bots, Anthropic's ClaudeBot and PerplexityBot. They sometimes downloaded JavaScript files, but they did not run them. Crawlers can change, so treat this as a snapshot, but it is still the clearest public data on the question.
There were exceptions. Google's Gemini uses Googlebot's infrastructure, which renders JavaScript. Applebot also renders pages. So a site can do fine in Google while other AI tools see very little.
Google itself says it can process JavaScript as long as it isn't blocked, but notes in its generative AI guide that JavaScript-heavy sites are more complex to optimize.
The View Source test
This is the simplest check I know, and you don't need any tools.
- Open an important page on your site, such as your homepage or a service page.
- Right-click and choose "View Page Source" (or press Ctrl+U on Windows, Cmd+Option+U on Mac).
- Press Ctrl+F or Cmd+F and search for a sentence you can see on the page.
- If you find it, that text is in the raw HTML. AI crawlers can likely read it.
- If you can't find it, the text is loaded by JavaScript. Many AI crawlers will not see it.
Note that "View Page Source" is different from "Inspect". Inspect shows the page after JavaScript runs, so it will always look complete. View Source shows what a non-rendering crawler receives.
What to check most carefully
- Your main headings and first paragraphs
- Service descriptions and prices
- Your name, location and contact details
- Blog article text
- Navigation links to your key pages
What to do if content is missing
If your site is built on a website builder, check whether it offers a setting for server-side rendering or static pages. If a developer built it, ask about server-side rendering (SSR) or static site generation. Both deliver the text in the first HTML response.
If a full fix is not possible right away, start with your most important pages. Make sure at least the core facts about who you are and what you do appear as plain HTML.
It is a small test with a big payoff. If the text is not in the source, no amount of great writing will help AI tools find it.
Related: robots.txt and AI bots: which to allow and which to block
Sources
Vercel, The rise of the AI crawler
Google Search Central, Optimizing your website for generative AI features on Google Search