Skip to the content
Start free

Dynamic rendering

Dynamic rendering is a set-up where your server spots a crawler, usually by its user agent, and sends it a ready-made HTML copy of a JavaScript page, while people get the normal JavaScript version. Google now calls it a workaround, not a long-term fix. For the long run, Google points owners to three other methods that serve one version to everyone.

What is dynamic rendering? #

Many modern sites build the page in the browser. The server sends a near-empty shell plus scripts, and the scripts fill in the words, prices and links. That is client-side rendering, common on a single-page application. A person with a browser sees the full page. A bot that does not run the scripts may see almost nothing.

Dynamic rendering splits the traffic in two. Visitors get the scripts. Bots get a copy that a rendering server has already run in a headless browser and saved as plain HTML. The idea is that crawlers read the finished page without doing the work themselves. Our rendering entry explains the wider process.

How does it work? #

Google’s page on dynamic rendering as a workaround sets out the moving parts:

  1. Your web server checks each request, for example by reading the user agent.
  2. Requests from crawlers that cannot handle your JavaScript go to a rendering server.
  3. The rendering server returns a version that suits the crawler, such as static HTML.
  4. Everyone else gets the normal page.

Google says you can switch it on for the whole site or page by page. The rendered copies are usually cached, because running a headless browser for every bot hit is slow and costly. A CDN or edge cache often sits in front of them.

Google handles JavaScript pages in three phases, according to its JavaScript SEO basics: crawling, rendering and indexing. Between the first two, a page waits in a render queue. Google says that can be a few seconds, but it can take longer, and rendering happens once its resources allow. Content that only appears after scripts run can therefore reach the index late, or not at all if a script fails.

Dynamic rendering was a way to skip that queue: give Googlebot the finished HTML on the first fetch. Google still lists it, but the same page says it is a workaround and points owners to better options. Our JavaScript SEO page covers the rest of the picture.

Why does it matter for AI answers? #

Google’s own basics guide warns that some bots never execute scripts, and its dynamic rendering page adds that other search engines may ignore JavaScript and miss content it creates. Bing said in a 2018 bingbot post that it is hard for bingbot to process JavaScript at scale on every page of every site, and it called dynamic rendering a great alternative for script-heavy sites. That was 2018 advice, so treat it as history, not today’s rule.

The same logic applies to AI crawlers such as GPTBot, ClaudeBot and PerplexityBot. Do not assume any of them runs your scripts. If your facts only exist after JavaScript runs, an assistant may quote an empty shell, or nothing. Plain HTML that holds the real words is the safest base for answer engine optimisation.

Is dynamic rendering cloaking? #

Not by itself. Google says Googlebot generally does not treat dynamic rendering as cloaking, as long as both versions carry the same content. Serving completely different content to users and crawlers can be treated as cloaking, which breaks Google’s spam policies. Bing’s 2018 post said the same in its own words: a good faith effort to return the same content to all visitors is not cloaking.

So the rule is simple. The bot copy may differ in how it was built. It must not differ in what it says: same words, same prices, same links, same schema markup.

What should you use instead? #

Google’s preferred routes are server-built HTML, files built ahead of time, and hydration. web.dev’s Rendering on the Web defines them:

Method What happens Who gets HTML
Server-side rendering The server builds HTML for each request Everyone
Static rendering A separate HTML file per address is made at build time Everyone
Hydration Scripts add interactivity on top of server-built HTML Everyone, then scripts take over
Client-side rendering The browser builds the page with JavaScript Only clients that run scripts
Dynamic rendering Bots get a pre-rendered copy, people get scripts Bots only

The first three give one version to everyone, which removes the cloaking risk and the upkeep of a second system. Our client-side vs server-side rendering and server-side rendering entries go deeper.

Common mistakes #

  • Stale copies. The cache keeps last week’s price while the live page shows a sale. Crawlers then index the wrong facts.
  • Error pages served to bots. Google notes your site may produce error pages during set-up, and Googlebot treats them like any other error page.
  • Missing content. Google says some pages may have problems with content not showing in the rendered HTML. Lazy content and late API calls are the usual cause.
  • A short bot list. Detection only knows the user agents you list. New search crawlers and AI bots fall through to the empty shell.
  • Trusting fake user agents. Anyone can claim to be Googlebot. Pair detection with verified bots checks or a reverse DNS bot check.
  • Slow renders. A cold render can push time to first byte up for bots and waste crawl budget.

A worked example #

A UK shop runs its catalogue as a React app. The raw HTML of a product page holds a title, a script tag and an empty div. A browser shows a kettle at £39.99 with stock and reviews.

  • Without any fix: a bot that reads raw HTML finds no price, no description and no internal links. The page looks thin.
  • With dynamic rendering: the server sees the Googlebot user agent and serves a cached rendered copy with the full text. If that copy is a day old, it may still say £44.99.
  • With server-side rendering: every visitor and every bot gets the same HTML with £39.99, then scripts add the basket button. One version, nothing to keep in step.

The shop moves to server-side rendering for product and category pages and keeps scripts for the basket only.

How to check it #

  1. Put one product address into our JavaScript SEO Checker: it sets the source a bot fetches beside the page a browser builds.
  2. Check what AI systems can read with the AI Readiness Checker, and whether a plain copy exists with the Markdown Version Checker.
  3. Look at the response for bots and people with the HTTP Header Checker; a Vary: User-Agent header is a common sign of dynamic rendering. Our guide to the header checker walks through it.
  4. Confirm a bot hit is real with Verify AI Bot and see which bots your rules let in with the AI Bot Checker.
  5. Open URL Inspection inside Google Search Console and view the HTML Googlebot rendered.
  6. Check the facts in markup match the page with the Schema Markup Checker.
  7. For every page at once, URSY Pro adds a rendering check (Pro) that flags pages whose bot copy and browser copy drift apart.

Questions #

Is dynamic rendering still allowed? #

Yes. Google still documents it and does not treat it as cloaking when content matches. It just calls it a workaround and suggests other methods.

Is prerendering the same thing? #

No. web.dev defines prerendering as running a client-side app at build time to capture its first state as static HTML. Everyone gets that file. Dynamic rendering gives the copy to bots only.

Does it help speed? #

Not for people, who still get the script version. Server-side or static rendering helps both, as Google notes in its JavaScript basics.

Do I need it on a normal WordPress site? #

Usually not. Most WordPress themes already send full HTML from the server. Check with the tools above before adding anything.

Sources #

Updated 25 November 2026 by URSY.

Cite this page: Dynamic rendering. URSY. Updated 25 November 2026. https://ursy.com/wiki/dynamic-rendering/ · Section links

Tools for this

All 871 wiki entries, A to Z →