Skip to main content

November 29, 2026

Can AI Crawlers Read JavaScript? I Tested 9 Sites to Find Out

7 min read

Illustration of two browser windows: a complete business web page on the left and the same page as an AI crawler sees it on the right, empty except for the code div id root, under an orange scanning beam

No, most AI crawlers can't read JavaScript. OpenAI's GPTBot, Anthropic's ClaudeBot and PerplexityBot download your raw HTML and leave without running your scripts, so any words your site builds in the browser never reach them. Google's crawler is the exception, and Gemini rides on it. So the real question is simple: are your words in the HTML before any JavaScript runs?

I didn't want to just repeat what other posts say about this, so I tested it. On November 29, 2026, I pulled nine template sites built on Astro, Webflow, Squarespace, Framer, WordPress and Lovable, and compared what a visitor sees with what a crawler downloads. Five of them handed over every word. Four handed over two words: "Edit with."

Why your site can look perfect and still be blank to ChatGPT

A website can look finished to every human who visits it and still be an empty page to an AI crawler. That happens when the site sends a nearly empty HTML file and uses JavaScript to build the page inside your browser. People call this client-side rendering, and it's how a lot of React apps work, including the ones AI site builders spit out.

Your browser runs that JavaScript in a split second, so you never notice. A crawler that doesn't run JavaScript gets the empty file and moves on.

Vercel and MERJ studied this across Vercel's network and found that "none of the major AI crawlers currently render JavaScript" (Vercel, December 2024). The list included OpenAI's GPTBot, OAI-SearchBot and ChatGPT-User, Anthropic's ClaudeBot, Meta's crawler and PerplexityBot. Notice what they found about ChatGPT and Claude, though. Both bots do download JavaScript files. They just don't execute them. It's like handing someone the recipe and expecting them to taste the cake.

Google is different. Google's own documentation explains that Googlebot queues pages for rendering and runs the JavaScript before indexing (Google Search Central). Vercel's study adds that Gemini uses Googlebot's infrastructure, so it gets the full page too.

What I found when I tested 9 template sites

Here's how I ran the test. For each site, I fetched the page with curl using the GPTBot user agent, stripped out the scripts and code, and counted the words left in the page body. Then I loaded the same page in a real Chromium browser, let the JavaScript run, and counted the words a visitor actually sees.

I used public template and demo sites from each platform, plus my own site, so nobody's real business gets put on blast.

Table comparing words a visitor sees with words in the raw HTML for nine template sites: Astro, Webflow, Squarespace, Framer and WordPress sites have their content in the HTML, four Lovable templates have an empty page body
My test from November 29, 2026. Five platforms sent their words as HTML. Four Lovable templates sent two words.

Notice the pattern. Every site built on Astro, Webflow, Squarespace, Framer and WordPress put its content, headline included, right in the HTML. The four Lovable templates sent back a page title, a meta description and an empty box.

Take the plumbing template, Aquafix. In Chrome, it's a full homepage with a headline, service sections, a client count and 1,465 words of copy.

Screenshot of the Aquafix plumbing template from Lovable loaded in Chrome, showing the headline Top-Notch Plumbing and Repair Solutions, Quality Work, with photos of plumbers
What a visitor sees: the Aquafix plumbing template in Chrome.

Here's the raw HTML that a crawler without JavaScript receives from that same address.

Trimmed raw HTML of the Aquafix Lovable template showing a title tag, a meta description and a body that contains only an empty div with the id root
What a crawler without JavaScript gets from the same page. The page body is one empty div.

That empty <div id="root"></div> is the whole page body. The headline, the services, the phone number in the menu: none of it exists until JavaScript builds it. The only words a crawler gets are the page title and the meta description tucked in the head.

Does Lovable fix this for AI crawlers?

Lovable says yes, for the crawlers it can verify. Its docs say older React and Vite apps get pre-rendered copies served "to verified search engines, social preview bots, and AI crawlers," and apps created from May 13, 2026 run on TanStack Start with full server-side rendering (Lovable docs). I also found that the Aquafix template returns a clean Markdown version of the whole page when you ask for one.

So my test doesn't prove the real GPTBot sees a blank page on a Lovable site. Lovable only serves its pre-rendered copy to crawlers it verifies, and my request came from my own server with GPTBot's name on it. What my test does show is what everyone else gets: the link checker, the SEO tool that isn't on the list, the AI agent that Lovable hasn't verified yet, and anyone who exports the code and hosts it somewhere else.

And that's where I land. I believe your content belongs in the HTML for everyone, including the bots a platform hasn't decided to recognize. A workaround that depends on spotting the right visitor is a crutch. Crutches are fine when you're healing. You don't want to build your house on one.

Now, I don't think this means JavaScript is bad or that you need to tear down your site. My own site uses JavaScript for animations and forms. The difference is that the words are already in the HTML before any of it runs.

The CL Creative homepage loaded with JavaScript turned off, still showing the full headline, navigation menu, intro copy and contact form
My own site, clcreative.co, with JavaScript off. It's built on Astro, so the headline, menu, copy and form are all still there.
image showing office in background with project roadmap, website strategy, and next milestone cards in the front

Want a website built on a system, not guesswork?

Send me a message and tell me about your project. I'll come back with a clear picture of what your site needs to do and a rough budget range, whether you hire me or not.

How to check what AI crawlers see on your own site

You can check your own site in about two minutes, and you don't need any special tools. Pick your homepage and your most important service page, then run either test.

Test 1: Turn JavaScript off in Chrome

  1. Open your page in Chrome.
  2. Right-click anywhere and choose Inspect to open DevTools.
  3. Press Cmd+Shift+P on a Mac or Ctrl+Shift+P on Windows to open the command menu.
  4. Type "Disable JavaScript" and press Enter.
  5. Reload the page with DevTools still open.

If your headline, services and contact details are still there, crawlers can read them. If you get a blank screen, a spinner or a lone logo, that's what a non-JavaScript crawler gets. JavaScript turns back on as soon as you close DevTools.

This is what the Aquafix template looked like with JavaScript off. Nothing but the background color and the "Edit with Lovable" badge.

The Aquafix Lovable template loaded with JavaScript turned off, showing a blank dark blue screen with only an Edit with Lovable badge in the corner
The Aquafix template with JavaScript off. A blank screen and a badge.

Test 2: Search the page source

  1. Open your page in Chrome.
  2. Press Cmd+Option+U on a Mac or Ctrl+U on Windows to view the source code.
  3. Press Cmd+F or Ctrl+F and search for a sentence from your homepage headline.
  4. Search again for your phone number and one service name.

If those words show up in the source, they're in the HTML. If the search comes up empty, your page is being built by JavaScript after it loads.

What to do if your site fails the test

The fix is to get your important content into the HTML that the server sends, before any JavaScript runs. How you get there depends on how your site was built.

  • AI-built site on Lovable: Check which stack your project uses. Lovable says projects created from May 13, 2026 on already use server-side rendering, and older ones can be upgraded to TanStack Start. Keep it on Lovable hosting with a custom domain so the pre-rendering keeps working.
  • Custom React, Vue or Angular site: Ask your developer about server-side rendering or static generation (Next.js, Nuxt, Astro and similar frameworks all do this). Vercel's recommendation is the right rule of thumb: render the main content, metadata and menus on the server, and save client-side JavaScript for extras like chat widgets and live counters.
  • Webflow, Squarespace, WordPress or Framer: The platform already sends your words as HTML. Watch for embeds and third-party widgets, though. Reviews, FAQs or pricing tables pulled in by a script are invisible to these crawlers even on a platform that passes the test.

Once your words are readable, the rest of AI search work starts paying off. That's when things like schema markup , your robots.txt choices for OpenAI's bots and a full AI search self-audit make sense. Before that, they're decorating an empty room. It's the same reason I told contractors an llms.txt file is far down the list.

Should you build your business site with an AI site builder?

You can, and they've gotten better at this fast. But the builder you pick decides whether your words exist before JavaScript runs, and that choice is harder to undo than any SEO tweak.

Here's how I'd think about it:

  • Best for testing an idea quickly: An AI builder like Lovable is a fast way to get a prototype or a simple landing page in front of people.
  • Best for a site that has to bring in leads for years: A platform or framework that sends real HTML by default, like Astro, Webflow or WordPress, so search engines and every AI crawler can read you without special treatment.

If you're weighing those paths, I wrote a longer breakdown of custom sites vs templates vs DIY builders .

Is your website readable to the tools your customers ask?

More of your customers are asking ChatGPT, Claude and Perplexity who to hire. Those tools can only recommend what they can read. Your site is either handing them your services, your city and your reasons to call you, or it's handing them an empty box.

So run the two-minute test today. What does your homepage look like with JavaScript off?

When you want a second set of eyes, book a 30-minute call. I'll run this test on your homepage and key service pages live, show you what Google and the AI crawlers are getting, and tell you what I'd fix first, whether you hire me or not. If your site needs a rebuild that puts your content in the HTML from day one, that's what my web design service is built for.

Cover of the guide 10 Marketing Mistakes Contractors Make, by Casey Lewis of CL Creative

10 Marketing Mistakes Contractors Make

A free guide to the 10 ideas that sound reasonable but cost you jobs, and the 10 rules that keep your phone ringing and your calendar booked up.

Questions You Might Be Asking

Usually not. OpenAI's GPTBot, OAI-SearchBot and ChatGPT-User download your HTML but don't run your JavaScript, according to Vercel and MERJ's crawler study. Content that only appears after scripts run is invisible to them unless your platform serves those bots a pre-rendered copy.

Yes. Googlebot queues pages for rendering and runs the JavaScript before indexing, and Gemini uses the same infrastructure. Rendering can lag behind crawling, though, so content in the HTML still gets picked up faster and more reliably.

Yes, in my test both sent their page content as plain HTML, headline included, with no JavaScript needed. The exception is anything you add through a third-party script, like a reviews widget or an embedded FAQ, which AI crawlers won't run.

Not automatically. Lovable says it serves pre-rendered pages to verified search engines and AI crawlers, and new projects now use server-side rendering. The risk is with older projects, unverified bots and code hosted outside Lovable, where the raw HTML is still an empty shell, so run the JavaScript-off test on your own pages.

It ranges from free to a rebuild. Upgrading a Lovable project or turning on static generation in an existing framework can be a fairly small job, while a site built entirely around client-side rendering may need to be rebuilt on a platform that sends real HTML. Run the two-minute test first so you know which problem you have.

Ready to win back the jobs going to your competitors?

Tell us about your business. We'll show you what the plan covers and what it would look like for you.

A finished backyard pergola and stone fire-pit patio glowing at dusk behind a home

Related Posts

A self-audit scorecard for AI search visibility across ChatGPT, Perplexity, and Google AI Overviews.

AI Search Self-Audit: How to Tell If Your Business Is Invisible in 15 Minutes

Check if ChatGPT, Perplexity, and Google AI recommend your business in 15 minutes. Free self-audit with a 9-point scoring grid, what your score means, and what to fix first.

Illustration of a website with a robots.txt file, an open gate labeled OAI-SearchBot and a locked gate labeled GPTBot

GPTBot vs OAI-SearchBot: Should Your Business Block ChatGPT?

GPTBot vs OAI-SearchBot: one trains OpenAI's models, one decides if you show up in ChatGPT search. I checked 18 DFW websites to see who's blocking which.

A code editor showing JSON-LD schema markup next to a rendered search result with rich snippets

What Is Schema Markup and Why It Matters for AI Search

Schema markup is a labeling system that helps AI tools read your website with confidence. Here's what it is, what it can't do, and where to start.

Other posts in this category

Editorial illustration of a local map with an orange pin beside three business result cards, the top card highlighted in orange

Google Business Profile for Contractors: What Gets You Into the Map Pack

Google Business Profile for contractors: I checked who won the map pack for 5 trades in Midlothian, TX. Category, reviews and distance mattered most.

Illustration of an llms.txt file with a business name, one-line summary and page links, sitting between a website and AI chat replies

Does Your Contractor Website Need an llms.txt File?

What is llms.txt, and does your contractor website need one? Google says it ignores the file. I checked 10 DFW search results to see who actually has one.

Contractor leaning on his pickup truck outside a brick home, checking his phone to see if his business shows up in AI search

What's the Key to Getting Your Business to Show Up in AI Search?

There's no single trick to getting recommended by ChatGPT or Google's AI. It comes down to five things, and most local contractors are missing at least one of them.