Technical Setup
Is Your Website Invisible to ChatGPT? The 2-Minute Test
It might be. Many AI bots read only the page your server sends and skip JavaScript, the code that builds some pages in the browser. If your site relies on JavaScript to show its words, those bots may see a blank page. To check, open View Page Source and search for your headline. If it isn't there, those bots can't see it either.
- A 2024 Vercel study found AI bots from OpenAI, Anthropic and Perplexity didn't run JavaScript.
- Google does run JavaScript, so a site can look fine in Google and still be blank to AI tools.
- Your developer can fix it by sending finished pages from the server. You usually don't need a new site.
- Logged-in screens like dashboards can stay as they are.
Your website looks great in your browser. That's because your browser does a lot of work. It downloads the page, runs all the JavaScript (the code that builds some pages on the fly) and puts together everything you see.
Many AI bots skip that work. Vercel, a web hosting company, studied bot traffic in December 2024. It found that AI bots from OpenAI, Anthropic and Perplexity, including ClaudeBot and PerplexityBot, didn't run JavaScript. Apple's bot did. Google's bot, Googlebot, does run JavaScript, though Google notes this step can be delayed.
So the real question for a lot of modern sites is: what's in the page before any JavaScript runs?
Run the Test
- Open an important pagePick a service, product or pricing page.
- Open the page sourceRight-click the page and choose View Page Source. Or type
view-source:in front of the web address and press Enter. A page of code opens. - Search for your headlinePress Ctrl+F (Cmd+F on a Mac). Type the first few words of your main heading. Then try a line from the first paragraph.
- Check the page titleSearch for
<title>. The words after it should describe this page, not repeat the same thing on every page.
Found your words? Good. AI bots can read them.
Found almost nothing except <div id="root"></div>? Your words only appear after JavaScript runs. Many AI bots will see a blank page.
If It Came Up Blank
You don't need a new website. You need your important pages to arrive with their words already in them. Ask your developer about one of these three fixes:
| Fix | What it means | Good for |
|---|---|---|
| Static generation | Each page is built in advance, so it's ready to send | Marketing pages, blogs, help docs |
| Server-side rendering | The server builds the page fresh for each visit | Pages that change often |
| Prerendering | A finished copy of key pages is saved after each update | Existing JavaScript-heavy sites that need a quick fix |
Tools like Next.js, Nuxt, Astro and SvelteKit handle the first two out of the box. Google recommends server-side rendering or prerendering too, partly because not every bot can run JavaScript.
Logged-in screens like dashboards can stay JavaScript-only. Nobody needs those cited.
We had this problem too
Moonlit Tools' own public pages started out built entirely in JavaScript. Every page arrived as an empty shell with the homepage's title. We now send every public page with its own title, description and a short summary already in the HTML, and the blog is fully static. If it can happen to a website checkup tool, it can happen to anyone.
Where Moonlit Tools Fits
Moonlit Tools' crawler reads the HTML your server sends, the way many AI crawlers do, so a page that only fills in after JavaScript runs shows up as thin in a scan. What AI Readiness measures.
Frequently Asked Questions
Does Google penalize JavaScript sites?
No. Google runs the JavaScript and lists these sites in search. The bigger risk is AI assistants whose bots don't run it.
Is it OK if JavaScript adds my structured data?
Structured data is labels in your page's code that tell search engines what things are. Google can read it after running JavaScript. Bots that skip JavaScript won't. So it's safer to put it (usually a JSON-LD block) straight into the page.
Sources
- The rise of the AI crawler, Vercel, December 2024
- Understand JavaScript SEO basics, Google Search Central
See What Google and AI Tools Can Read
Moonlit Tools reads your site the way search engines and AI assistants do, then tells you what to fix first and shows you why. Scan your own website free. No card needed.
Scan Your Site Free Or apply for 90 days of Launch free