Skip to content
SEO-Wars

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.

ResultPoints
120 words or more4
40-119 words2
Under 40 words, or an empty app shell0

How to fix it

  1. Use server-side rendering or static generation: Next.js Server Components, Nuxt, SvelteKit, Astro, or your CMS's normal templates.
  2. If you have a client-only single-page app, add prerendering for public pages.
  3. Check with curl or "View source" (not DevTools Elements) that your main text is in the response.

Copy-paste fixes

Next.jsapp/products/[slug]/page.tsx
// 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>
  );
}
Command line
# 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 -w

Common mistakes

  • Fetching the main content with useEffect in 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.

Start a duel
← All checksUpdated December 1, 2026
Server-rendered content: why it matters and how to fix it · SEO-Wars