Dynamic rendering is a server-side technique that detects the requesting user agent and serves prerendered static HTML to search engine crawlers while regular visitors receive the normal client-side rendered JavaScript application. In technical SEO, it emerged as a pragmatic bridge for sites whose content depends heavily on JavaScript and which crawlers could not render reliably or quickly enough.
Google described dynamic rendering as a workaround rather than a long-term solution, and its current guidance recommends server-side rendering, static generation or hydration instead. The technique still appears on large legacy applications, so practitioners need to understand how it works, when it is acceptable and where it fails.
How dynamic rendering routes crawlers and users
Dynamic rendering works by placing a routing decision in front of the application that inspects each request and chooses one of two delivery paths. The decision usually relies on the User-Agent header, sometimes combined with reverse DNS verification of crawler IP addresses to block spoofed bots.
When the request comes from a recognized crawler such as Googlebot or Bingbot, the server forwards it to a headless browser renderer, for example a Puppeteer-based service or a prerendering platform. The renderer loads the page, executes the JavaScript, waits for network activity to settle and returns the fully rendered DOM as static HTML. Human visitors bypass this path and download the usual JavaScript bundle.
The following table summarizes the main components of a typical setup and the role each one plays.
| Component | Role | Typical implementation |
|---|---|---|
| Bot detection layer | Classifies requests as crawler or human | Middleware rule matching user agent strings |
| Headless renderer | Executes JavaScript and serializes the DOM | Headless Chromium controlled by Puppeteer |
| Render cache | Stores snapshots to avoid repeated rendering | Key-value store or CDN cache with expiry |
| Origin application | Serves the normal client-side app | React, Angular or Vue single-page application |
| Monitoring | Compares snapshots with the live app | Scheduled diff checks and log analysis |
Because rendering a page in a headless browser can take several seconds per URL, production systems almost always cache snapshots and refresh them on a schedule or after content changes. The cache is what makes the approach affordable at scale, and it is also the main source of stale content problems.
Why dynamic rendering was introduced
Dynamic rendering was introduced because search engines historically processed JavaScript in a delayed second wave of indexing. Googlebot first crawled the raw HTML, then queued the page for the Web Rendering Service, which could take hours or days when rendering resources were scarce. Content injected by JavaScript was therefore indexed late or not at all.
Other crawlers had weaker or no JavaScript support, and many social media preview bots still read only the initial HTML. For a single-page application with an empty HTML shell, this meant missing titles, descriptions and links for a large part of the crawler population. Dynamic rendering gave such sites indexable HTML without rewriting the front end.
Since Googlebot moved to an evergreen Chromium rendering engine in 2019, the rendering gap for Google has narrowed considerably. The gap remains relevant for some secondary search engines, for AI crawlers that do not execute JavaScript, and for link preview services.
Dynamic rendering compared with other rendering strategies
Dynamic rendering differs from other strategies because it produces two different delivery paths for the same URL, whereas the alternatives serve one consistent output to every client. The comparison below shows where each approach stands on the factors that matter most in JavaScript SEO.
| Strategy | HTML received by crawlers | Consistency for users and bots | Maintenance effort |
|---|---|---|---|
| Client-side rendering | Empty shell until JavaScript runs | Same output, but late content | Low |
| Dynamic rendering | Prerendered snapshot | Two paths that can diverge | High, separate pipeline |
| Server-side rendering | Complete HTML per request | Identical for all clients | Moderate to high |
| Static site generation | Complete HTML built in advance | Identical for all clients | Low for stable content |
| Hydration or streaming SSR | Complete HTML, then interactive | Identical for all clients | Moderate |
The key distinction is that server-side rendering and static generation improve the experience for users as well, because the first paint contains real content. Dynamic rendering benefits only crawlers and leaves the user-facing performance of the client-side app unchanged, including its effect on page experience signals.
Dynamic rendering and cloaking
Dynamic rendering is not considered cloaking as long as the crawler receives substantially the same content that users see after the JavaScript runs. Cloaking means deliberately showing search engines different content to manipulate rankings, which violates search engine spam policies.
The line is crossed when the snapshot contains extra keywords, hidden links or text that users never see, or when users receive a different page than the one indexed. Minor differences, such as omitted interactive widgets or a removed cookie banner, are generally acceptable. The safest rule is that the rendered DOM for bots should match the rendered DOM for users.
When dynamic rendering is still a reasonable choice
Dynamic rendering remains reasonable only as a temporary measure when a site cannot move to server-side rendering in the near term. The decision table below outlines typical situations and the recommended approach.
| Situation | Recommended approach | Reason |
|---|---|---|
| New project on a modern framework | Server-side rendering or static generation | One output for all clients from the start |
| Legacy single-page app, rewrite planned | Dynamic rendering as a bridge | Restores indexing while the rewrite proceeds |
| Content changes every few minutes | Server-side rendering | Snapshots would be stale too often |
| Mostly static marketing pages | Static site generation | Cheapest and fastest option |
| Only preview bots fail | Server-rendered meta tags | A full renderer is unnecessary |
If dynamic rendering is chosen, teams should define an exit date and treat the renderer as technical debt. Every new feature must otherwise be tested twice, once in the app and once in the snapshot.
Common failures and how to detect them
Most dynamic rendering problems are silent failures: the site looks correct to users while crawlers receive broken or outdated snapshots. Regular verification with the URL Inspection tool, rendered HTML comparisons and server log analysis is therefore essential.
| Symptom | Likely cause | Fix |
|---|---|---|
| Outdated prices in search results | Snapshot cache not invalidated | Purge cache on content updates |
| Empty or partial snapshots | Renderer timeout before data loads | Raise timeout or wait for a ready signal |
| Soft 404 errors reported | Error pages returned with status 200 | Pass correct HTTP status codes to bots |
| New crawler not served snapshots | User agent list out of date | Maintain the bot list and verify by DNS |
| Server overload during crawls | Rendering on every bot request | Pre-warm the cache and rate-limit renders |
- Snapshots must carry the same canonical, hreflang and robots directives as the live page.
- Internal links in snapshots should be real anchor elements with href attributes, not click handlers.
- Structured data must be present in the snapshot, not only injected later for users.
Stripped to the essentials
Many modern websites build their pages inside the visitor’s browser with JavaScript. Search engine robots sometimes struggle with that, so they may see an almost empty page. Dynamic rendering solves this by giving robots a ready-made copy of each page, while people still get the normal interactive version.
Think of a restaurant that hands guests a live cooking show but gives a food critic a printed menu with photos of every dish. That works only if the menu matches the real food. Today, most experts prefer building pages that are complete for everyone from the start, so dynamic rendering is best seen as a temporary fix.
Where it is applied
A mid-sized online retailer runs its catalog of about 40,000 product pages as an Angular single-page application. Search Console shows that fewer than half of the product pages are indexed, and many indexed pages lack prices and descriptions. A full migration to server-side rendering is estimated at nine months of development.
The team places a prerendering service behind its CDN that serves cached snapshots to verified search engine bots, refreshing each product snapshot whenever stock or price changes. Within about ten weeks, indexed product pages rise to over 90 percent, and rich results with prices begin to appear. The team keeps the renderer only until the server-side rendered version launches, then removes the dual pipeline to eliminate the maintenance burden and the risk of stale snapshots.