In short
Ahrefs flags "Main content requires JavaScript rendering" when a page's main content is missing from the raw HTML and only appears after JavaScript runs. Ahrefs notes that most AI bots can't execute it. A large crawl study by Vercel and MERJ found that OpenAI's and Anthropic's crawlers fetch JavaScript files but don't run them. Serve the main content in the HTML itself, with server-side rendering or static generation.
Google has rendered JavaScript for years, so many sites built entirely in client-side React or Vue still rank. AI crawlers are different.
What AI crawlers see
A client-side app often sends HTML like this:
<body>
<div></div>
<script src="/assets/app.js"></script>
</body>
A browser runs the script and builds the page. A crawler that doesn't run JavaScript sees an empty div. The Vercel and MERJ study (December 2024) found no evidence that GPTBot, OAI-SearchBot, ChatGPT-User or ClaudeBot rendered JavaScript. It's one study, so confirm against your own server logs if this matters to you.
Check a page yourself
View the raw HTML (right-click > View Page Source, not DevTools Elements) and search for a sentence from the main content. If it isn't there, crawlers that don't render can't see it. From a terminal:
curl -s https://example.com/page/ | grep -c "a sentence from the page"
A result of 0 means the text isn't in the HTML.
How to fix it
| Approach | Good for |
|---|---|
| Static site generation (SSG) | Content sites, blogs, service pages; builds HTML once at deploy |
| Server-side rendering (SSR) | Pages that change per request |
| Prerendering service | Older single-page apps you can't rebuild yet |
Frameworks like Astro, Next.js (static export or SSR) and Nuxt make this straightforward. For a React and Vite site, a static-generation plugin or a move to Astro can output full HTML for every route.
WordPress, Shopify, Webflow and Wix: core pages are server-rendered already. The issue usually comes from widgets: reviews, product tabs, FAQs or pricing loaded by a script. Choose apps and plugins that output content in the HTML, or put key text directly on the page.
Common mistakes
Checking only in Google's URL Inspection tool, which renders JavaScript and so hides the problem.
Rendering the text but not the links. Crawlers also need plain
<a href>links to find your other pages.
This guide isn't affiliated with or endorsed by Ahrefs.
Related issues
Sources and references
Ahrefs, Site Audit
Vercel, The rise of the AI crawler (Dec 2024)
Google Search Central, Understand JavaScript SEO basics

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



