The quick download:
Serving meaningful HTML up front can cut seconds off how fast users see your content.
-
Across eight popular websites tested, delivering HTML up front improved Largest Contentful Paint by roughly 4 to 13 seconds.
-
Heavy client-side JavaScript delays content, image discovery, and initial rendering, so users see a skeleton screen before the real page appears.
-
WebPageTest Experiments let you test performance optimizations on a live website without changing production code, so you can estimate the impact before writing a single line of code.
-
Use WebPageTest Experiments to validate the performance gain before investing in a rendering overhaul, then verify the results with real user monitoring (RUM).
In September 2022, WebPageTest ran experiments on eight sites to estimate how much faster they might load if they delivered meaningful HTML up front instead of generating content with client-side JavaScript. The historical results showed Largest Contentful Paint improvements ranging from about four to more than 13 seconds.
Heavy dependence on client-side JavaScript can delay meaningful content, image discovery, and initial rendering. Sometimes the solution is as simple as lowering the priority of noncritical scripts. When JavaScript generates the page’s primary content, however, improvement may require a deeper architectural change.
Modern sites can use client-side rendering, server-side rendering, static generation, streaming, or a hybrid approach. The right choice depends on the content and user experience, but delivering meaningful HTML earlier can significantly improve initial performance.
This blog explains the workflow, results, and caveats so you can decide whether to run the same experiment before investing in a major rendering change.
How to recognize client-rendering delays
Sites that suffer delivery performance issues from JavaScript over-dependence are relatively easy to spot. They often render their content in noticeable steps.
First they show a blank or “skeleton” layout without content. Later, once the JavaScript finishes fetching and generating the HTML, they show a fully populated page.
The initial layout steps are meant to make the page feel like it responded quickly, so long loading times seem more tolerable.
Let’s look at some examples from the September 2022 tests.
This WebPageTest filmstrip shows Twitter’s Explore page loading on a 4G connection on a mobile device in Chrome, at 1-second intervals, captured in September 2022.

The initial keyframes display a loading image (the blue bird here), then an unpopulated placeholder layout, and finally the real content. That bird registers as the site’s First Contentful Paint (FCP), but the actual page content replaces it much later. An early FCP can mislead here: the metric fires on the first pixel the browser paints, even when that pixel is only a logo or skeleton rather than the content the visitor came for. Visual loading tricks affect measurement tools as well as people.
Here’s another example. This is Airbnb’s homepage loaded on a cable connection in Chrome on a desktop computer.

Here the “skeleton” loading screen is visible for about 5 seconds. Only after the page’s HTML is generated can the browser discover and fetch the images that will eventually populate the grid. Those grid images register as the site’s Largest Contentful Paint (LCP), one of Google’s Core Web Vitals.

Tradeoffs and how to know when to make a change
The sites in this post display this pattern clearly, but their architectural decisions were made thoughtfully by highly skilled teams. Web development involves tradeoffs.
A team may decide the initial performance impact of JavaScript dependence is a worthy compromise for other benefits. Those benefits include personalized content, lower server costs and complexity, and performance in long-lived sessions.
Even so, it’s reasonable to suspect a better result up front. If these sites delivered meaningful HTML at the start, browsers would render initial content sooner and users would see the improvement.
That situation creates a bind. Suspecting that a change will improve performance is one thing. Seeing the impact for yourself is another.
For many sites, generating HTML on the server instead of the client is complicated enough to be hard to prototype, let alone ship to production. Committing to big, time-consuming changes is difficult when you don’t know whether they will help.
Enter WebPageTest Opportunities and Experiments
WebPageTest’s Opportunities and Experiments feature is useful here. Opportunities diagnose likely issues in a test run. Experiments model potential changes without altering production, so you can estimate the impact of a fix before building it.
Run either of these sites through WebPageTest and open the opportunities section. You’ll find an observation that a large amount of HTML was generated after delivery by JavaScript and may be worth your attention.
Here it is on Twitter’s result:

And on Airbnb’s:

Those observations come free to any WebPageTest user as part of any test run, and the diagnostics on that page continue to expand. A companion to those observations is available to users with access to WebPageTest Experiments.
Pro users who expand that observation see the following experiment:

Once applied, the experiment tests the impact of delivering the site’s final HTML directly from the server at the start. That helps developers understand the potential impact of the change before doing any of the work.
How the Mimic Pre-Rendered HTML experiment works
Before the mechanics, one limitation matters up front. The experiment swaps in a captured final DOM, which can break site behavior and does not reproduce a production rendering architecture, so its results are a directional signal rather than a shippable implementation. In this context, “pre-rendered HTML” means a captured DOM swap used to estimate potential upside, not true server-side rendering (SSR).
Like other WebPageTest experiments, it makes one or more changes to a live site mid-request through a proxy server, then compares that test to an identical test that does not modify the site. These two groups of runs are the Experiment and the Control, and users are encouraged to run at least three of each to get a reliable median result. To keep the comparison fair, WebPageTest runs both the experiment and the control through its experiments proxy, so proxied tests are compared only to other proxied tests and the optimization itself is the main measured difference.
The Mimic Pre-Rendered HTML experiment makes its change in a single swap, using information collected in the original test. WebPageTest stores a final DOM snapshot for each run, and during the pre-render experiment the proxy fetches that stored final HTML and replaces the site’s initial HTML response body with it as the response is passed to the browser. For many sites, this reveals the potential performance benefits of a real implementation in a single click.
A useful practice is to combine this experiment with a “disable scripts” experiment. That combination helps prevent JavaScript-rendered sites from re-rendering after delivery, and running several tests, comparing medians, and inspecting the experiment artifacts helps catch anything that might skew the comparison
Predicting the benefits of serving useful HTML
Let’s look at Twitter first. Running the Mimic Pre-Rendered HTML experiment on Twitter’s Explore page gives these initial results.

At first glance, the comparison video on the top right shows the expected impact of meaningful HTML. The page is fully populated with content at 3.4 seconds, down from the original 12 seconds.

A couple of metrics are slower in the experiment run: start render and First Contentful Paint. That happens only because the control site renders its bird image early. The experiment doesn’t render its real content quite as soon as that bird.
A large improvement, and it gets larger
Just beneath the experiment results, WebPageTest added a note about notable initial response time differences between the experiment and the control run. The experiment took a little longer to reach Time To First Byte (TTFB). This can happen with any experiment because of common network variance or inconsistent server response times, and it can sometimes highlight server issues worth investigating.
With the pre-render HTML experiment, the variance is expected, because the proxy task itself takes a little time to apply mid-flight. It requires making a request for that final HTML.

Delays from our proxy tasks aren’t useful in a comparison. They likely wouldn’t exist in a real implementation on a live site.
So whenever server timing varies by more than 100ms, WebPageTest offers a link to view the results with each run’s first byte times ignored. That link shows the metric differences more fairly, as if both runs delivered their initial HTML at the same moment. This is an analytical adjustment for a cleaner comparison, not an observed production result.

With the experiment’s response time normalized, we see a 9.32 second improvement in Largest Contentful Paint. That’s for new visits to the page on Chrome mobile with a 4G connection, measured in September 2022.
Here’s that experiment shown head-to-head in a real-time video. This comparison video does not include the TTFB normalization above, so render times appear a little later than they would ideally be.

Here’s the same experiment on desktop Chrome, which is also dramatic, with more than 6 seconds earlier LCP.

We’ve probably done enough to understand the impact of this optimization. We could still refine the experiment to remove some noise. For example, an artifact in this comparison shows the experiment had 1 additional render-blocking request that wasn’t present in the control.
The final HTML snapshot likely contains link or script elements that were originally added dynamically, and thus non-blocking. They appear render-blocking when viewed as static output. The experiment’s request waterfall confirms a Google account stylesheet is to blame, shown with a render-blocking indicator on row 2.

In a real implementation, that blocking request wouldn’t exist in the HTML at load time. You might refine the experiment further by removing it from the source. For now, the result is dramatic enough that we don’t need to reduce noise to make the run faster.
This is a helpful reminder to treat these comparisons with caution. They predict how an optimization would apply, but watch for artifacts that can skew the results.
Experimenting on Airbnb
Running the Mimic Pre-Rendered HTML experiment on Airbnb’s homepage gives the following results, adjusted for differences in proxy timing.

Another large improvement, especially since this test ran on desktop with a fast cable connection. Serving useful HTML up front produced a nearly 5 second improvement on LCP. The images also begin to load early here, because they’re present in the initial HTML.
Browsers scan HTML early after delivery and fetch the resources (images, videos, and other assets) needed for the initial layout. With those images in the HTML, the browser discovers them immediately. In the control site, it finds them much later, after JavaScript generates the HTML with the image references.
The 2022 results across eight sites
To show the pattern across more JavaScript-reliant sites, the table below consolidates all eight September 2022 tests. The remaining brand screenshots follow the table as the 2022 evidence set.
| Site | Test date | Device / network | Metric improvement | Limitations |
|---|---|---|---|---|
| Twitter (Explore) | September 2022 | 4G Chrome mobile; also desktop Chrome cable | 9.32s faster LCP on mobile; more than 6s earlier LCP on desktop | TTFB-normalized comparison; one artifact render-blocking request in the snapshot |
| Airbnb (homepage) | September 2022 | Desktop Chrome cable | Nearly 5s faster LCP | Fast connection already; captured DOM swap, not production SSR |
| CNN.com | September 2022 | 4G Chrome mobile | More than 8s faster start render; 13s faster LCP | Captured DOM swap; synthetic single-run pattern |
| Spotify | September 2022 | Desktop Chrome cable | Almost 7s faster LCP | Fast connection; captured DOM swap, not production SSR |
| September 2022 | 4G Chrome mobile | 5.38s faster LCP | Captured DOM swap; synthetic conditions | |
| Apple.com | September 2022 | 4G Chrome mobile | 4.0s faster start render and LCP | Captured DOM swap; synthetic conditions |
| FedEx.com | September 2022 | 4G Chrome mobile | 4s faster start render | Captured DOM swap; synthetic conditions |
| Local ice cream shop | September 2022 | 4G Chrome mobile | 8.47s faster LCP | Captured DOM swap; synthetic conditions |
CNN.com showed a more than 8-second improvement in start render and 13-second faster LCP on 4G Chrome mobile:

Spotify showed an almost 7-second improvement in LCP on desktop Chrome cable:

Reddit showed a 5.38s LCP improvement on 4G mobile Chrome:

Apple.com showed a 4.0s improvement in start render and LCP on 4G Chrome mobile:

FedEx.com showed a 4 second faster start render on 4G Chrome mobile:

And here’s one from a local ice cream shop, with 8.47s faster LCP on 4G Chrome mobile:

The pattern is consistent across these tests. Serving useful HTML up front tended to load faster than client-side generated HTML, often by a wide margin. The direction is strong, though the result isn’t universally guaranteed: server response time, cacheability, payload size, hydration cost, personalization, and implementation quality can all change the outcome in production.
When to run this experiment
This experiment earns its place when the evidence points toward a rendering problem you can’t yet quantify. Consider running it when you see these signals:
- Meaningful content appears only after a skeleton screen.
- Images are discovered late in the request waterfall.
- LCP occurs well after FCP.
- A large portion of the DOM is created after initial delivery.
- The team is weighing SSR or a hybrid rendering model and needs evidence before committing engineering time.
If the signals line up, treat the experiment as the first step, not the last. Validate the finding across several runs and geographies, inspect the experiment artifacts, and compare the result against field or real-user data. Then prototype the appropriate rendering strategy and measure again after deployment.
Synthetic versus real-user measurement
This experiment estimates potential improvement under controlled synthetic conditions. It’s a directional signal, not a production result. Confirm the finding with real-user monitoring (RUM) or production measurement, both before and after implementation, so the change you ship matches the improvement you predicted.
How to serve pre-rendered HTML
The full implementation is beyond the scope of this post, but many good articles address it directly. Rendering content on the server instead of the browser can be complex, and the right technique depends on your site’s architecture. Several rendering options are worth evaluating:
- Full server-side rendering, which builds complete HTML on the server for each request.
- Static generation, which pre-builds pages at deploy time.
- Selective or partial pre-rendering, which pre-renders only the sections of a page that benefit most.
- Streaming, which sends HTML to the browser incrementally as it’s produced.
- Partial hydration, which attaches interactivity only where it’s needed.
- Reducing client-side JavaScript so the browser has less work to do after delivery.
Whichever direction you choose, test framework-specific behavior, caching, personalization, and hydration cost before you commit. Because this problem is widespread and frequently discussed, others may have already documented a path for your technology stack.
A note on accessibility
Server-rendered HTML can help as a progressive-enhancement benefit: when meaningful content is present in the initial markup, assistive technology such as screen readers can reach it sooner, rather than waiting for JavaScript to build the page. That benefit is conditional. Server-rendered HTML is not automatically accessible. Accessibility still depends on semantic markup and accessible interaction design.
Bringing it back to digital experience
The clearest lesson here is a decision-making one: run the experiment before you fund a large architectural change. A controlled test that estimates the upside costs a fraction of the engineering work, and it grounds the decision in evidence instead of suspicion.
The broader lesson is to pair controlled front-end testing with ongoing visibility across the delivery chain. WebPageTest is built for controlled front-end diagnosis and experimentation. LogicMonitor Digital Experience provides continuous visibility across user experience, Internet dependencies, applications, cloud, and infrastructure in one view, so teams can see where a slowdown starts and who it affects. The platform doesn’t perform the architectural remediation itself; it shows you where to look and confirms whether a change held up in production.
See how much faster your site could load before you rebuild it.
WebPageTest predicts the upside of serving HTML up front. Pair that front-end diagnosis with LogicMonitor Digital Experience, for continuous visibility from the browser to infrastructure, so you can confirm the change held up in production.
FAQs
How much faster can serving HTML up front make a website?
In September 2022 tests across eight popular sites, serving meaningful HTML up front improved Largest Contentful Paint by about 4 to more than 13 seconds. Results vary with connection speed, payload size, and implementation quality, so treat the numbers as a directional signal for your own testing.
What is the Mimic Pre-Rendered HTML experiment in WebPageTest?
It replaces a page’s initial HTML with the fully rendered HTML captured from a test run, mimicking server-generated HTML. The result estimates the performance upside of serving HTML up front before you invest engineering time. Because it swaps a captured DOM, it can break site behavior, so use it to estimate potential, then validate with a real build.
Should I switch to server-side rendering to improve performance?
It depends on your content and users. Client-side rendering brings real benefits, including personalization and lower server complexity, so the right architecture is a tradeoff. Run the experiment first to quantify the upside, then confirm it with real-user monitoring before and after you ship.




