AI visibility
Server-rendered content: put your text in the HTML
If your text only appears after JavaScript runs, many crawlers and AI bots see an empty page. 120 or more words in the raw HTML earn full points.
- Category
- AI visibility
- Points available
- 4 pts
- Effort
- Heavy lift
Why it matters
Most AI crawlers and many SEO tools do not run JavaScript. Google does, but rendering is queued and can be delayed. Text in the initial HTML is seen by everyone, immediately.
Server rendering also shows content sooner to visitors, which helps LCP.
How we measure it
We count the words in the raw HTML, without running JavaScript (scripts, styles, noscript, SVG and templates removed).
We flag an empty app shell when there are fewer than 40 words and the page has a mount point (#root, #app, #__next...), a noscript that asks for JavaScript, or scripts with almost no text.
| Result | Points |
|---|---|
| 120 words or more | 4 |
| 40-119 words | 2 |
| Under 40 words, or an empty app shell | 0 |
How to fix it
- Use server-side rendering or static generation: Next.js Server Components, Nuxt, SvelteKit, Astro, or your CMS's normal templates.
- If you have a client-only single-page app, add prerendering for public pages.
- Check with
curlor "View source" (not DevTools Elements) that your main text is in the response.
Copy-paste fixes
// A Server Component: data is fetched on the server and the text is in the HTML response.
// Avoid "use client" + useEffect(fetch) for the main content.
export default async function ProductPage({ params }: { params: Promise<{ slug: string }> }) {
const { slug } = await params;
const product = await getProduct(slug);
return (
<main>
<h1>{product.name}</h1>
<p>{product.description}</p>
</main>
);
}# What a crawler without JavaScript sees: count the words in the raw HTML
curl -s https://www.example.com/ | sed -e 's/<script[^>]*>.*<\/script>//g' -e 's/<[^>]*>/ /g' | wc -wCommon mistakes
- Fetching the main content with
useEffectin a client component. - Putting the whole page behind a loading spinner until the API answers.
- Testing only in a browser, where JavaScript hides the problem.
Test your site now
Put your site against a competitor and see how many of these points you earn, and which fixes pay off first.