NEW: The AI Search Playbook 2027, with the CITE Framework, 30 prompts and a 90-day plan. Download free →
UpRankSEO
Free SEO & AI Audit
Technical SEO3 min read

JavaScript Rendering and AI Visibility: The Answers AI Cannot See

Ramkumar Srinivasan, Founder, HL Infotech Pvt Ltd
Published 27 November 2026
JavaScript Rendering and AI Visibility: The Answers AI Cannot See
QUICK ANSWER
  • Many AI crawlers fetch raw HTML and do not execute JavaScript, so content that loads only through client-side scripts can be invisible to them.
  • Googlebot renders JavaScript, but in a second phase that can be delayed.
  • Test by viewing the page source or fetching it with JavaScript disabled; if key content is missing, switch to server-side rendering, static generation or pre-rendering.

Key takeaways

  • "View source" shows what non-rendering crawlers see.
  • Single-page apps, tabs and accordions loaded on demand are common culprits.
  • Server-side rendering or static HTML fixes the problem for every crawler.

How Google handles JavaScript

Google's documentation describes three phases: crawling, rendering and indexing. Pages are queued for rendering, and JavaScript-generated content is processed after rendering. Google recommends server-side or pre-rendering because it is faster for users and crawlers and not all bots can run JavaScript.

How to test in 3 steps

1. View source

Right-click, View Page Source, and search for a sentence from your main content. If it is not there, it is loaded by JavaScript.

2. Disable JavaScript

Use your browser's developer tools to disable JavaScript and reload. What you see is roughly what many AI crawlers get. For a deeper look, read Website Not Showing on Google? 14 Reasons and How to Fix Each.

3. Use URL Inspection

In Search Console, inspect the URL and view the rendered HTML Google captured.

Rendering options

OptionHow it worksBest for
Client-side renderingBrowser builds the pageLogged-in apps, not marketing pages
Server-side renderingServer sends full HTMLDynamic marketing sites
Static generationHTML built ahead of timeContent and service sites
Pre-renderingSnapshot served to botsLegacy apps as a stopgap
HydrationFull HTML first, interactivity addedModern frameworks

Our own website uses static generation with hydration: every page ships full HTML, then adds interactive features.

Want this done for you? Our 20+ specialists run this exact process for businesses in India, the UAE and the USA. Request a free SEO, AEO and GEO audit and we will show you where you stand against your top three competitors.

Common patterns that hide content

  • Prices, FAQs or reviews fetched from an API after the page loads.
  • "Load more" buttons that reveal content only on click.
  • Tabs whose content is injected when the tab is opened.
  • Location or service details rendered from a map widget.
  • Cookie walls or pop-ups that block the main content in the HTML.

How to prioritise fixes

Start with pages that bring or should bring enquiries: service, location, pricing and case study pages. Move their key text into the server-rendered HTML first. Blog and support content can follow. You may also find this useful: How to Allow (or Block) AI Crawlers in robots.txt: GPTBot, OAI-SearchBot, PerplexityBot and Google-Extended.

What to tell your developer

Ask for three things: the main content, headings and internal links present in the initial HTML response; structured data in the HTML rather than injected later; and no blocking of verified search crawlers at the server or CDN. These three requests solve most AI visibility problems we find in audits.

Questions people ask

Does Google penalise JavaScript sites?

No, but rendering delays and errors can slow indexing and hide content.

Are tabs and accordions a problem?

Not if the content is in the HTML and only visually hidden. It is a problem if it loads only on click.

Is React bad for SEO?

React with server rendering or static generation, as in Next.js, works well. Client-only React for marketing pages is risky.

Ramkumar Srinivasan
Written by the UpRankSEO team, led by Ramkumar Srinivasan, founder of HL Infotech Pvt Ltd (since 2008). UpRankSEO is an SEO and AI search agency in Thane, Mumbai, helping businesses in India, the UAE and the USA get found on Google, Google Maps and AI answers. Ramkumar on LinkedIn ↗

Keep reading

Want more enquiries from Google and AI search?

Get a free SEO, AEO and GEO audit. We will check your Google ranking, Maps visibility and whether ChatGPT and Gemini mention you.

Get a free SEO & AI audit