Website fix · AI search

Make sure your words are in the HTML, not only in JavaScript

Many AI crawlers read your HTML without running JavaScript. How to see what they see in a minute, and how to fix it on WordPress, Wix, Webflow and custom sites.

Book a 30-minute call (opens in a new tab)Grade your website free

Free, 30 minutes, with the people who'd do the work.

Grader checkReadable without JavaScript
Area
Ready for AI search
What it counts for
Heavy. One of the biggest checks in its area.
The question it answers
Can ChatGPT, Perplexity and Google’s AI answers read and recommend you?

Written by Miles Dahmann, Technical + Quality · Updated

How to check
4 steps
Fix guides
WordPress, Squarespace, Wix, Webflow, Shopify, Custom code
Copy-ready example
What a crawler that doesn’t run JavaScript receives
Questions answered
3, including the ones people ask first

The short answer

Many AI crawlers read only the HTML your server sends and don’t run JavaScript, so a page that builds its text in the browser can look nearly empty to them. View your page source and search for a sentence from your homepage. If it isn’t there, render the page on the server or prerender it so the words ship in the HTML.

Why it matters

A browser downloads your page’s HTML, then runs its JavaScript, which can add or change what’s on screen. People see the finished result. A crawler that doesn’t run JavaScript sees only the first part: whatever words were already in the HTML.

Googlebot does run JavaScript, though sometimes after its first visit. Vercel and MERJ studied a month of crawler traffic in 2024 and found that none of the major AI crawlers it tested ran JavaScript, including OpenAI’s, Anthropic’s and Perplexity’s. Google’s Gemini (which uses Googlebot’s systems) and Applebot were the exceptions. So a page can show up in Google and still look blank to an AI assistant that’s trying to answer a question about you.

Sites built on WordPress, Squarespace, Wix, Webflow and Shopify usually send their words in the HTML already. The risk is highest on custom single-page apps built with React, Vue or similar tools without server rendering, on some newer site builders that generate that kind of app, and on sections whose content comes from an embedded widget.

The grader reads your homepage the way a simple crawler does. If it finds almost no words but some scripts, it reports that the words only appear after JavaScript runs. If it finds fewer than about 120 words, it gives a warning.

How to check your own site

  1. Open your homepage, right-click and choose View Page Source (or press Ctrl+U on Windows, Cmd+Option+U on a Mac). This is the HTML as your server sends it.

  2. Search the source (Ctrl+F or Cmd+F) for a sentence from your headline and one from halfway down the page. If you can find them, crawlers can read them.

  3. For a second check, turn off JavaScript in your browser’s developer tools and reload. What’s left on screen is roughly what a non-rendering crawler gets.

  4. Run the free website grader; the “Readable without JavaScript” check reports how many words it found in the HTML.

Grade your website free

How to fix it

Menu names change from time to time. Where a platform’s own help article is the safest guide, we say so.

WordPress
Standard themes and the block editor put your words in the HTML. If a section is missing from the page source, it’s usually a slider, tab set or page-builder widget that loads content with JavaScript. Replace it with ordinary blocks, or a widget that outputs plain HTML.
Squarespace
Text you add with Squarespace’s own blocks is normally in the HTML. Check code blocks and embedded widgets: content loaded from a third-party script may be invisible to crawlers that don’t run JavaScript.
Wix
Wix renders pages on its servers, so text added in the editor is normally in the HTML. Check content that comes from embedded apps or custom HTML embeds, which can load separately, and keep the important words in regular text elements.
Webflow
Webflow publishes static HTML, so text placed in the Designer is in the source. Check custom code embeds, third-party widgets and content that only appears after an interaction loads it.
Shopify
Shopify themes render on the server, so theme text is in the HTML. Some apps (reviews, FAQs, page builders) inject their content with JavaScript. Check those sections in the page source and prefer apps or theme sections that output HTML.
Custom code
If your site is a single-page app (for example React or Vue built with Vite), the server sends an empty shell. Move public pages to server-side rendering or static generation (Next.js, Nuxt, Astro and SvelteKit all support it), or prerender them at build time. Start with the homepage, service pages and contact page.

Example you can copy

What a crawler that doesn’t run JavaScript receives
Weak: the words arrive later, from JavaScript
<body>
  <div id="root"></div>
  <script src="/assets/app.js"></script>
</body>

Better: the words are already in the HTML
<body>
  <h1>Bookkeeping and payroll for independent restaurants</h1>
  <p>Monthly books, payroll and sales tax filings, with one person who knows your numbers.</p>
  <a href="/contact">Get a quote</a>
  <script src="/assets/app.js"></script>
</body>

This is a pattern, not a drop-in file. Swap in your own details and keep any rules you already need.

Common mistakes

Questions about this fix

Does Google read JavaScript?

Yes. Googlebot runs JavaScript, though the rendered page may be processed after the first crawl. That’s why a JavaScript-only page can appear in Google and still be unreadable to AI assistants that only fetch HTML.

Is my Wix, Squarespace or Shopify site at risk?

Usually not for text you add in the editor. The common exceptions are embedded apps, widgets and code blocks that pull content from elsewhere. The page-source check above answers it for your site in a minute.

What about text inside images?

Words baked into an image can’t be read as text by most crawlers. Put your headline, services and contact details in real text, and describe important images with alt text.

Sources

Run the free website grader to see how many words a simple crawler finds on your homepage. If your site needs server rendering or a rebuild, Coyote can scope it with you as part of AI search readiness work.

Book a 30-minute call (opens in a new tab)Send a note

More website fixes

All website fixes