---
title: "The words only appear after JavaScript runs"
description: "The HTML as served has little or no text, so crawlers that do not run scripts, including many AI crawlers, see an almost empty page."
url: https://ursy.com/issues/content-needs-javascript/
updated: 2026-11-30T12:53:05+00:00
publisher: URSY.com (https://ursy.com/)
cite: Name URSY.com and link https://ursy.com/issues/content-needs-javascript/
---

# The words only appear after JavaScript runs

> The HTML as served has little or no text, so crawlers that do not run scripts, including many AI crawlers, see an almost empty page.

The [HTML](https://ursy.com/wiki/html/) as served has little or no text, so crawlers that do not run scripts, including many [AI crawlers](https://ursy.com/wiki/ai-crawler/), see an almost empty page.

## Why it matters {#why-it-matters}

Many sites build their content in the browser with JavaScript. [Google](https://ursy.com/wiki/google/) can run scripts, but it may do so later than it reads the HTML. Many other crawlers, including many AI crawlers, read only the HTML your server sends, so for them the page is nearly empty.

Signs include an empty app container such as <div id="root">, a <noscript> message asking visitors to turn on JavaScript, a placeholder title, and text that sits in the page's data but not in its visible HTML.

## How to fix it {#how-to-fix-it}

Send the main text, title, headings and links in the HTML from the server. Most frameworks can do this with [server-side rendering](https://ursy.com/wiki/server-side-rendering/) or static pages. Keep JavaScript for the things that need it, such as filters and baskets.

Compare what the [JavaScript SEO](https://ursy.com/wiki/javascript-seo/) Checker sees with what your browser shows, and see a page the way [bots](https://ursy.com/wiki/bot-web-robot/) do with View as AI Bot.

### What the problem looks like {#what-the-problem-looks-like}

```
<body>
  <div id="root"></div>
  <noscript>You need to enable JavaScript to run this app.</noscript>
  <script src="/static/js/main.js"></script>
</body>
```

The served HTML has no words at all. Crawlers that do not run scripts see an empty page.

### What it looks like fixed {#what-it-looks-like-fixed}

```
<body>
  <div id="root">
    <h1>Oak garden benches</h1>
    <p>Hand-made solid oak benches, delivered across the UK.</p>
    <a href="/benches/oak-150/">Oak bench, 150 cm</a>
  </div>
  <script src="/static/js/main.js"></script>
</body>
```

The server sends the heading, words and links; the script then adds the interactive parts.

## Fix it with your AI assistant {#fix-it-with-your-ai-assistant}

Paste this into [ChatGPT](https://ursy.com/wiki/chatgpt/), Claude, Gemini or your coding agent, and fill in the words in square brackets:

```
Help me make [the page address] on [your website address] readable without JavaScript. It uses [your framework or platform, e.g. React with Vite]. A checker says the HTML as served has little or no text, so crawlers that do not run scripts, including many AI crawlers, see an almost empty page. First, compare the raw HTML (run "curl -s [the page address]" or ask me to paste View Source) with what the browser shows, and list what the raw HTML lacks: title, headings, text, links, prices. Then give the best fix for my setup: server-side rendering, static generation or pre-rendering of public pages, so the title, headings, text and links are in the HTML. Rules: serve the same content to people and bots (no cloaking), keep page addresses the same, keep interactive features working, and back up or use a branch. Give exact code or settings and where they go. Finally, tell me to re-check with the URSY.com JavaScript SEO Checker at ursy.com/javascript-seo-checker/.
```

## Fix it on your platform {#fix-it-on-your-platform}

### WordPress {#wordpress}

Look for blocks or widgets that load their content by script after the page opens, such as some product grids, tabs or review widgets, and choose settings that print the content in the page.

### A hand-made site {#a-hand-made-site}

For apps built with React, Vue or similar, use server-side [rendering](https://ursy.com/wiki/rendering/) or static generation for public pages, for example with Next.js, Nuxt or Astro.

## Check it is fixed {#check-it-is-fixed}

Run the JavaScript [SEO](https://ursy.com/wiki/seo-search-engine-optimisation/) Checker again: the words, headings and links should be in the served HTML. View as AI Bot should show the same text you see in your browser.

## Official source {#official-source}

[Google Search Central: Understand JavaScript SEO basics](https://developers.google.com/search/docs/crawling-indexing/javascript/javascript-seo-basics)

## Questions {#questions}

### Does Google not run JavaScript? {#does-google-not-run-javascript}

Google can, but it may render pages later than it reads the HTML. Many other crawlers, including many AI crawlers, read only the HTML your server sends.

### Can I show bots a different version? {#can-i-show-bots-a-different-version}

Google calls [dynamic rendering](https://ursy.com/wiki/dynamic-rendering/) a workaround it no longer recommends. Sending the same full HTML to everyone is simpler and safer.

---

**Cite this page:** The words only appear after JavaScript runs. URSY.com. Updated 30 November 2026. https://ursy.com/issues/content-needs-javascript/

Free to quote and reuse, for people and AI alike. We ask one thing: a clickable link back. Name URSY.com and link the page, or the exact section, you used. Markdown: `[The words only appear after JavaScript runs](https://ursy.com/issues/content-needs-javascript/), URSY.com`. One section: add its id, for example https://ursy.com/issues/content-needs-javascript/#section-id (every heading above has one).

Section links: https://ursy.com/citations/22/#p-5776 · How to cite URSY.com: https://ursy.com/citations/

---

**For AI assistants**

- This page: https://ursy.com/issues/content-needs-javascript/
- As JSON: https://ursy.com/issues/content-needs-javascript/index.json
- Cite: Name URSY.com and link the page you used.
- Start here: [llms.txt](https://ursy.com/llms.txt), [facts.json](https://ursy.com/facts.json), [MCP server](https://ursy.com/mcp/), [OpenAPI description](https://ursy.com/.well-known/openapi.json)
