SEO

Prerendering

Also called Pre-rendering, snapshot rendering

Producing a page's HTML ahead of the request, so the first response already contains readable content.

Quick facts: Prerendering

Category
SEO
Also called
Pre-rendering, snapshot rendering
Level
Advanced
Affects
Indexing reliability, first paint, content freshness
Where to see it
Search Console URL Inspection, Screaming Frog, your prerender service's logs
In this article4
  1. How prerendering works
  2. Why prerendering matters
  3. Where prerendering goes wrong
  4. What to do about it

How prerendering works

A job runs away from the visitor: it opens each URL in a headless browser, waits for the JavaScript to finish drawing the page, and saves the resulting HTML as a file. Later requests are answered with that saved snapshot instead of an empty shell. It usually appears in one of two forms — a step inside the build pipeline of an existing single-page application, working from a list of routes, or a hosted service that sits in front of the site and keeps snapshots of its own.

One point of confusion worth clearing up: browsers use the same word for something else. Speculative prerendering means a browser quietly loading a page you are likely to click next so it appears instantly. That is about perceived speed for one visitor, not about what search engines can read.

Why prerendering matters

It gives crawlers a complete document on the first request without anybody rewriting the application. Headings, body copy, internal links, the canonical tag and the meta description are all in the response, so indexing no longer depends on a rendering queue or on a script executing successfully somewhere down the line.

Visitors gain too, as long as they are served the same snapshot. A saved file arrives and paints while the JavaScript bundle is still on its way, which is the difference between a page that feels usable on a mid-range phone and one that shows a blank screen for an uncomfortable stretch. For a client sitting on an existing single-page application with no budget for a rebuild, this is often the honest, affordable step.

Where prerendering goes wrong

Snapshots age. The saved file reflects the moment it was taken, so a price change, a new article or a removed product only reaches search engines when the snapshot is regenerated. If that job is manual, it stops happening within a month or two of launch.

Worse, snapshots can capture the wrong moment entirely. If an API was slow or failing when the job ran, the saved HTML may contain a loading spinner, an empty state or an error message — and that is then served confidently to every crawler until someone checks. The route list is the other weak point: pages created after it was written are simply never captured. And if the snapshots go only to crawlers while people get the JavaScript version, this stops being prerendering and becomes dynamic rendering, which brings its own problems.

What to do about it

Serve the prerendered HTML to everyone. Deciding what to send based on who is asking adds risk and helps nobody; sending the same document to all visitors makes the site faster and the setup easier to verify.

Regenerate automatically when content is published rather than on a calendar reminder, and build the route list from the XML sitemap so new pages are picked up without anyone remembering. Then validate the output: crawl the snapshots and search them for tell-tale strings such as loading text, empty titles or error copy, and use the URL Inspection tool in Search Console to confirm that what Google holds matches the live page. Treat the whole arrangement as a stage rather than a destination — static site generation or server rendering does the same job with fewer moving parts, and is where a maturing technical SEO setup should end up.

Do and do not

Do

  • Serve prerendered HTML to visitors as well as crawlers
  • Regenerate snapshots when content is published
  • Crawl snapshots for loading text and empty titles

Do not

  • Maintain the route list by hand
  • Let a failed API get saved as a snapshot
  • Treat it as a permanent architecture

Questions people ask about this

What is the difference between prerendering and static site generation?

They produce the same result by different routes. Static generation builds pages from source content and templates as part of a deliberate build process. Prerendering runs an existing application in a headless browser and saves whatever it draws, which is a retrofit for a site that was not designed to produce HTML on the server.

Should prerendered pages be served to visitors as well as crawlers?

Yes, wherever possible. Serving the same HTML to everyone makes the page faster for real people, removes the risk of the two versions drifting apart, and keeps the setup simple to test. Sending snapshots only to crawlers turns the arrangement into dynamic rendering, which Google now treats as a workaround rather than good practice.

How often should prerendered snapshots be refreshed?

Tie the refresh to publishing rather than to a schedule. A snapshot should be regenerated whenever the underlying content changes, triggered automatically by the CMS or the deployment. Fixed intervals almost always end up too slow for pages that change often and wasteful for pages that never change at all.

Related terms

Found this useful?

Share it, or ask an AI to summarise it

Back to the glossary

Knowing the term is the easy part

Applying it to your own site and budget is the work. Book a call and I will tell you what actually applies to you.