CITELOG › CHECKS › CONTENT WITHOUT JAVASCRIPT
Is the content there without JavaScript?
AI crawlers mostly read the HTML as sent and don't run JavaScript. If your text appears only after scripts run, they see an empty page. Citelog counts the words in the HTML before any JavaScript.
At a glance
| Check | Content present without JavaScript |
ID in --json output |
no_js_content |
| Why it matters | AI crawlers mostly read the HTML as sent and don't run JavaScript. |
| Weight | 3 of 17 points in the 0-100 score (a warning earns 50% of them) |
What does Citelog check?
| Result | When |
|---|---|
| Pass | The HTML as sent has enough text: 50 words or more, and no empty app root. |
| Fail | Fewer than 50 words of text in the HTML as sent. |
| Fail | An empty app root (such as <div id="root"></div>) and fewer than 150 words outside it. |
It's one of the three heaviest checks in the score, with indexable and robots.txt. A fail here usually drags the content checks down too, because they read the same HTML.
npx citelog check --render also loads the page in a Chrome you already have and prints how many words people see against how many AI crawlers get.
How do I fix it?
Render the main text on the server, or build it to static HTML:
- React single-page apps (Vite, Create React App): move to a framework that renders on the server or prerenders (Next.js, Remix, Astro), or prerender your public routes at build time.
- Next.js: keep content in Server Components or static pages. Text fetched in
useEffectarrives only after JavaScript runs. - Vue, Svelte: use Nuxt or SvelteKit with SSR or prerendering for public pages.
- Astro, Hugo, Eleventy, WordPress: content is in the HTML by default; check that a client-only widget isn't holding the main text.
How do I test it?
terminal
npx citelog https://yoursite.com/your-page
npx citelog check https://yoursite.com/your-page --render
curl -s https://yoursite.com/your-page | sed 's/<[^>]*>//g' | wc -wSources
- Google Search Central: Understand JavaScript SEO basics