Why JavaScript matters
A browser downloads your HTML, runs your JavaScript and shows the result. Many AI tools stop at the first step: they read the HTML your server sends and do not run scripts. If your site builds its content in the browser, as a single-page app without server rendering does, that HTML is an empty shell, and the tool sees a blank page.
A correct example
A page built in the browser sends AI tools only this:
<body>
<div id="root"></div>
<script type="module" src="/assets/index.js"></script>
</body>A page rendered on the server sends its text and links in the HTML, and can still run JavaScript afterwards. This is what you want:
<body>
<main>
<h1>Send invoices from your app</h1>
<p>One API call creates an invoice and emails it to your customer.</p>
<a href="/docs">Docs</a> <a href="/pricing">Pricing</a>
</main>
<script type="module" src="/assets/index.js"></script>
</body>This page is prerendered: its HTML contains this text before any script runs.
How to fix it
- Render or prerender the pages that matter on the server: your homepage, pricing and docs. Next.js, Nuxt, SvelteKit and Astro do this by default.
- For a single-page app built with Vite, prerender the public pages at build time, or move them to a framework that renders on the server.
- Use real
<a href>links for navigation, not click handlers. AI tools follow links, not buttons. - To see what an AI tool gets, run
curl -sS https://your-product.com/and look for your headline in the output.
What this check does
We fetch your homepage once and do not run JavaScript. We count the words of visible text, leaving out scripts, styles and templates. 75 words or more is "Good", 20 to 74 is "Needs work", and fewer is "Missing". We also count plain links to other pages on your site: 5 or more, including links to at least two of your docs, pricing and product pages, is "Good".