Skip to main content

Technical SEO

JavaScript SEO: does JavaScript hurt your rankings?

Will Sibley

By

SEO consultant, formerly Senior SEO Manager at The Telegraph

Published
Updated
Reading time
9 min read

JavaScript doesn't hurt your rankings, but the way your site delivers it can, which makes it a technical SEO question. JavaScript is the code that makes pages interactive. This site is built in Next.js, a JavaScript framework, and every page on it arrives as complete HTML. Problems start when a page's content only exists after a browser has downloaded and run your code, because not everything that reads the web is a browser.

That distinction matters more now than it did a couple of years ago. Google has got steadily better at running JavaScript. The AI crawlers that now help decide whether your business gets mentioned in an answer haven't. So this guide covers both halves. The first is what Google does with your JavaScript, and the second is what everything else sees when it doesn't run your JavaScript at all.

What Google does with JavaScript

Google processes JavaScript pages in three stages, which are crawling, rendering and indexing. Googlebot fetches the raw HTML first. Pages then wait in a queue to be rendered, which means Google loads them in a headless version of Chromium (the engine behind Chrome, run without a screen) and runs the JavaScript. Google keeps that Chromium up to date. Whatever exists on the page after that render is what gets indexed. In my audits I compare the page Google renders with the page a visitor sees.

Google's three stages, with the queue between crawling and rendering. The AI crawlers behind ChatGPT, Claude and Perplexity stop after the first step, because they don't run JavaScript.

The render queue used to be the scary part, with talk of content waiting days or weeks to be seen. That fear is out of date. Research by Vercel with the SEO consultancy MERJ measured over 37,000 renders on nextjs.org in April 2024. Half were rendered within 10 seconds of the first crawl, and 99% were rendered within about 18 hours. For a normal business site, Google will see your JavaScript content, and usually quickly. Rendering does cost Google more per page than plain HTML. On catalogues of tens of thousands of URLs that becomes a crawl budget question, but not on a site of a few hundred pages.

37,000+

renders measured on nextjs.org in April 2024

Vercel with MERJ

10 seconds

or less to render half of them after the first crawl

About 18 hours

to render 99% of them

So if Google were the only reader that mattered, the sensible position would be mild caution rather than alarm. Rendering can still fail in specific ways, which I'll come to, but "Google can't handle JavaScript" stopped being true years ago.

Where JavaScript sites still lose rankings

When a JavaScript site loses rankings, the cause is usually more specific than "Google didn't render the page", and each one can be checked.

  1. Blocked files. If robots.txt blocks the JavaScript files or data the page needs, Google's guide says it won't run that code. The render produces a broken page and Google indexes the broken version. This still turns up on sites that copied a robots.txt from somewhere in 2015.
  2. Content behind interactions. Google renders the page as it loads, and its lazy-loading guidance says it doesn't interact with your page. So it doesn't click your tabs, open accordions whose content only appears through JavaScript, or scroll down to trigger content that loads as you scroll. Content that needs a visitor's action before it exists on the page may as well not be there.
  3. Links that aren't links. Some frameworks make it easy to build menus from buttons that run code when clicked, instead of proper <a href> links. Google says it can only find your links if they're <a> elements with an href attribute. A clickable box without one is invisible as a signpost, however well it works for visitors.
  4. Page settings changed by JavaScript. Titles, canonical tags (which say which version of a page is the main one) and robots tags can all be changed by JavaScript after the page loads. Google warns that conflicting or multiple canonical tags can lead to unexpected results. A noindex tag, which keeps a page out of results, is the riskiest. If the first HTML says noindex, Google may skip rendering, so JavaScript that removes the tag may never run. These settings belong in the server's first response.
  5. Slow pages. Heavy JavaScript is the main reason sites fail INP, the measure of how quickly a page responds to a tap, which I covered in my Core Web Vitals guide. It isn't only a framework problem, since WordPress sites built with page builders can load just as much script. This costs you in user experience as much as in rankings.

None of these are rare. They're the rendering section of my technical SEO checklist applied to a framework site. You can see all of them in Search Console's URL Inspection tool by comparing the rendered HTML against what you expected to be there.

What's changed is that AI crawlers don't render at all

This is why the topic needs a fresh look in 2026. The crawlers that feed AI assistants don't run JavaScript. They fetch the raw HTML and don't run any of the code on it. Those crawlers include GPTBot for ChatGPT, ClaudeBot for Claude and PerplexityBot for Perplexity. Vercel's December 2024 research on AI crawlers found none of the major ones render JavaScript. ChatGPT's crawler fetched JavaScript files in 11.5% of its requests, and Claude's in 23.84%, but neither ran them. Checking that these crawlers can read a site is part of my AI search work.

The research names two exceptions. Google's Gemini uses Googlebot's systems, so it sees what Google sees. AppleBot, Apple's crawler, renders JavaScript through a browser-based crawler that Vercel describes as similar to Googlebot. Bing sits in between. Back in 2018 Bing said its crawler is generally able to render JavaScript, but finds it hard to do at scale on every page of every site. For sites relying heavily on JavaScript, it recommended sending its crawler ready-built HTML, an approach called dynamic rendering. Its current Webmaster Guidelines still say to avoid hiding critical content behind client-side rendering, and warn that content Bing can't reliably render may not be indexed. Google now calls dynamic rendering a workaround rather than a long-term solution, and recommends server-side or static rendering instead. So it's safer to treat Bing as a crawler that may not render all of your content, and to fix that with complete HTML for everyone rather than a separate version for bots.

Renders JavaScript

  • Googlebot
  • Gemini, which uses Googlebot's systems
  • AppleBot, Apple's crawler

Reads the raw HTML only

  • GPTBot for ChatGPT
  • ClaudeBot for Claude
  • PerplexityBot for Perplexity

The practical result is blunt. On a client-side rendered site, the server sends a near-empty page and JavaScript fills in the content in the browser. To most AI crawlers, that's a blank page. Google might rank it fine while ChatGPT and Perplexity have no idea what's on it, so the recommendations those assistants give route around you. If more of your would-be customers now ask an assistant instead of typing a search, the rendering choice you made for Google has a second audience it fails. Getting the HTML right is the technical half of showing up in AI search. The rest is the same content and authority work SEO has always asked for.

This site is a small sample of both halves. In a logged-out test on 12 November 2026, ChatGPT with search named me first of six for a question about WordPress SEO consultants in the UK, citing my WordPress SEO page. Perplexity, asked the same question, named other firms. Complete HTML means any crawler that fetches a page can read it. Whether an assistant then names you depends on the content and on who else mentions you.

The rendering options, compared

Every framework site makes a rendering choice, whether or not anyone made it on purpose. The options come down to a short list.

StrategyWhat the crawler receivesSuitsThe catch
Client-side rendering (CSR)A near-empty shell, filled by JavaScriptApps behind a login, dashboardsInvisible to AI crawlers; relies entirely on Google's renderer
Server-side rendering (SSR)Full HTML, built fresh each time someone asks for the pagePages whose content changes with each visit or very oftenServer cost, and slower responses if it isn't managed
Static generation (SSG, or ISR, which refreshes pages on a timer)Full HTML, built in advance when the site is publishedMarketing pages, blogs, most contentChanges need the site rebuilt, or the page refreshed on its timer (called revalidation)
HybridFull HTML, with JavaScript adding interactivity on topMost real business sitesRequires the choice to be made per page type

In short, anything you want found should arrive as complete HTML. JavaScript's job is to make that page interactive once it has arrived. Google's own guide still recommends server-side rendering or pre-rendering for the same reason, because not all bots can run JavaScript.

Anything you want found should arrive as complete HTML.

That's the approach on the sites I build. Marketing and content pages are built ahead of time, anything that changes per visitor is built on the server, and browser-side JavaScript is kept for the interactive parts. I decide rendering at the start of a build. Adding server rendering to a finished client-side app later is some of the most expensive repair work in technical SEO. When it turns into a full rebuild, everything in my website migration checklist applies on top.

How to check your own site

You don't need any tools to get a first answer. Open a key page and view the page source, meaning the raw source rather than the browser's inspect tool. Search it for a sentence of your main content. If it's there, crawlers that don't render can read you. If the source is a sparse page of script tags, everything in the AI crawler section above applies to you.

JavaScript and SEO FAQs

Does Google penalise JavaScript websites?

No. There's no penalty for using JavaScript, and Google renders it with an up-to-date version of Chromium. Framework sites rank well when the content arrives as HTML or renders cleanly. The problems are specific and technical, such as blocked files, content behind interactions and missing href links.

Can ChatGPT and other AI assistants read JavaScript content?

Mostly not. In Vercel's December 2024 research, the crawlers behind ChatGPT, Claude and Perplexity fetched raw HTML and didn't run JavaScript. Content that only appears after JavaScript runs in the browser is invisible to them. Gemini and Apple's crawler, AppleBot, are the exceptions, because both render pages much as Googlebot does. Server-side rendering or static generation solves this for all of them at once.

Do I need server-side rendering for SEO?

You need your indexable content to arrive as HTML, and server-side rendering and static generation are the two reliable ways to get there. Pure client-side rendering can still rank on Google. But it relies on a render step you don't control and leaves you invisible to most AI crawlers, which is a poor trade for public pages.

How can I tell if my JavaScript content is being indexed?

Search Google for an exact sentence from the page in quotes. Then check the page in Search Console's URL Inspection tool, comparing the rendered HTML against what should be there. Finally, view the raw page source to see what crawlers that don't render get. Together these tell you whether you have a Google problem, an AI visibility problem, or neither.

Want a site built to be seen?

The enquiry form at the bottom of this page comes straight to me, and I usually reply within one working day.

Get in touch

Get the Tuesday guide

One guide a week by email, written by me for business owners who aren't SEOs. Every email has an unsubscribe link.

Get in touch

Want this done for your site?

Send me the address and what you're trying to fix. I'll reply with what I'd do first and what it would cost.

  1. 1I reply myself, usually within one working day.
  2. 2I look at your site and its search visibility before we speak.
  3. 3If I can help, I send a scope and a price. If I can't, I say so.

Or email will@sibleydigital.com. I work UK afternoons and the full US working day.

All four fields are needed. I read every message myself. You only join the mailing list if you tick the box. How I handle your details.