Technical Setup

Is Your Website Invisible to ChatGPT? The 2-Minute Test

Moonlit Tools teamUpdated 3 min read

Short answer

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.
On this page
  1. Run the Test
  2. If It Came Up Blank
  3. Frequently Asked Questions
  4. Sources

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?

Left: a browser window showing a full bakery page with a headline, prices and an order button, because the browser ran the JavaScript. Right: the same page as raw HTML, which contains only a title of Home, an empty root div and a script tag. That is all many AI bots that skip JavaScript can read: no headline, no prices, no cakes. examplebakery.com/cakes Custom Birthday Cakes Order by Thursday for weekend pickup. 🎂 🧁 6-inch from $38 · 8-inch from $52 Order a cake VIEW SOURCE · NO JAVASCRIPT <html> <head> <title>Home</title> </head> <body> <div id="root"></div> <script src="app.js"> </body> No headline. No prices. No cakes. Title says "Home" on every page. What a person sees What many AI bots get

Run the Test

  1. Open an important pagePick a service, product or pricing page.
  2. 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.
  3. 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.
  4. 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:

FixWhat it meansGood for
Static generationEach page is built in advance, so it's ready to sendMarketing pages, blogs, help docs
Server-side renderingThe server builds the page fresh for each visitPages that change often
PrerenderingA finished copy of key pages is saved after each updateExisting 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

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