File compression: why a lighter website sells more, from the Amazon finding to a test with real files
In an internal Amazon test, every extra 100 milliseconds of page load cost 1% of sales. Here is what Google, Bing, Akamai, Deloitte and large retailers measured afterwards, how much gzip, Brotli, WebP and AVIF cut from a website in a test with real files, and what to check in your online store.
Compressing files means reducing the size of what a website sends to the browser: text (HTML, CSS and JavaScript) with gzip, Brotli or Zstandard, and images with the right format, quality and dimensions, such as WebP and AVIF. Fewer bytes arrive faster, especially on mobile, and speed sells. In internal A/B tests reported by a former Amazon engineer, every extra 100 milliseconds cost 1% of sales. Google, Bing, Akamai and Deloitte later measured effects in the same direction, with different sizes. In our test, gzip removed 73.6% of the weight of roo3.co text files, Brotli removed 78.8%, and a product image went from 4 MB to 97 KB in AVIF with no visible difference.
What you get from this article
- Compressing files means reducing what a website sends to the browser: text with gzip, Brotli or Zstandard, images with the right format, quality and size.
- The Amazon figure (100 ms slower, 1% fewer sales) comes from internal A/B tests in 2006, reported by a former engineer. Amazon never published the study.
- Google, Bing, Akamai, Deloitte, Zalando, Vodafone and Rakuten measured effects in the same direction, from 0.6% to 8.4% per tenth of a second, depending on the method.
- On mobile, 57% of home pages under 1 MB pass Core Web Vitals; at 5 MB or more, only 30% do (HTTP Archive, 2025).
- 28% of mobile home pages still fail the Lighthouse text compression audit.
- In our test, gzip removed 73.6% of the weight of roo3.co text files, and Brotli at its highest level removed 78.8%.
- A product image went from 4 MB as PNG to 97 KB as AVIF, with no visible difference in a zoomed crop.
The Amazon finding: 100 milliseconds, 1% of sales
The most repeated line about website speed and sales has a known origin. In November 2006, Greg Linden, a former Amazon engineer and one of the authors of the store's recommendation system, wrote on his blog about a talk by Marissa Mayer, then a Google executive.
Mayer said Google had tested showing 30 search results per page instead of 10. The page took 0.9 seconds to generate instead of 0.4, and traffic and revenue from the group that saw the new version fell by 20%. Half a second of waiting was enough.
Linden replied with Amazon's experience. The store ran A/B tests that delayed the page on purpose, in steps of 100 milliseconds, and found that even very small delays caused "substantial and costly" drops in revenue. In the slides of a talk he gave at Stanford at the end of that month, the result fits on one line: 100 ms slower, 1% fewer sales.
The figure has limits that rarely travel with it. Amazon never published the study, which is known through Linden's account. The test measured the Amazon of 2006, with the audience and connections of that time. What gives the figure some weight is that Microsoft researchers cite it in a 2013 paper on online experiments, next to Bing's own tests pointing the same way.
For a smaller store, the math works as an order of magnitude. If a store with 200,000 in monthly revenue reacted like the Amazon of 2006, each extra tenth of a second would cost 2,000 a month, 24,000 a year, in whatever currency it sells. That is not a forecast: each store's curve changes with product, price and audience. The studies that came later show how much that curve varies.
Every tenth of a second has a price, but each store has to find its own.
What later studies measured
After 2006, other companies asked the same question with different methods. Some delayed the page on purpose for a share of users, which measures cause. Others compared fast and slow visits over time, which measures correlation. The table gathers the results we checked at the original source.
| Time | Effect | |
|---|---|---|
| Amazon 2006, internal A/B test | +0.1 s | -1% sales |
| Google 2006, 30 results per page | +0.5 s | -20% traffic and revenue |
| Google 2009, server-side delay | +0.1 to 0.4 s | -0.2% to -0.6% searches |
| Bing 2013, delay for 20% of users | -0.1 s | +0.6% revenue |
| Akamai 2017, retail, 10 billion visits | +0.1 s | -7% conversion |
| Pinterest 2017, rebuilt pages | -40% wait time | +15% sign-ups |
| BBC 2018, news website | +1 s | 10% of users leave |
| Deloitte for Google 2020, 37 brands, 30 million sessions | -0.1 s | +8.4% retail conversion |
| Zalando fashion, catalog delay | -0.1 s | +0.7% revenue per session |
| Vodafone 2021, A/B test | 31% lower LCP | +8% sales |
| Rakuten 24 online store, A/B test | Optimized CWV | +33% conversion |
The direction is the same in all of them: faster page, more use, more sales. The size of the effect varies a lot, from 0.6% of revenue per tenth of a second at Bing to 7% of conversion at Akamai. Part of the gap comes from the method, and part from who pays for the research: Akamai sells content delivery networks, and the Deloitte study was commissioned by Google.
One detail of Google's 2009 test matters to anyone who sells: the effect lasted. Users who spent six weeks with a 400 millisecond delay kept doing 0.21% fewer searches over the following five weeks, with the page already back to normal. Slowness leaves a habit behind.
There is also a contrary result. In the 2013 paper, the Microsoft researchers note that an Etsy engineer said he saw no effect from a 200 millisecond delay, and they recommend repeating the test on your own site. For a store, that means measuring your conversion rate before and after each improvement instead of borrowing another company's number.
Why online stores feel slowness more
In a store, a purchase rarely fits on a single page. The shopper goes through search or a category, opens the product, goes to the cart and reaches checkout. Each step is a page load, and each wait is a chance to close the tab. In the Deloitte study, 0.1 seconds less raised the step from listing to product page by 3.2% and the step from product to cart by 9.1%, and buyers spent 9.2% more per order (the average order value).
Mobile makes it worse. In Akamai's 2017 report, half of consumers browsed products on their phones, but only one in five completed purchases on them, and 53% of visitors left a page that took longer than three seconds to load.
And stores live on images. LCP, Google's metric for the time until the largest visible element appears, is usually the product photo, the product grid or the top banner. At Vodafone, the page version that sold 8% more had, among other changes, a resized hero image and optimized SVG and PNG files.
The platform matters too. The HTTP Archive matched the stores it detects with real Chrome visit data, and the gap between platforms is wide:
| Core Web Vitals | LCP | |
|---|---|---|
| Shopify | 76% | 86% |
| Squarespace | 69% | 76% |
| Wix | 66% | 76% |
| Tiendanube same company as Nuvemshop | 51% | 60% |
| PrestaShop | 50% | 65% |
| WooCommerce | 35% | 39% |
| Magento | 35% | 52% |
The report names LCP as the main thing separating platforms and explains WooCommerce's gap by its unlimited customization: theme, plugins and images are left to whoever builds the store. On any platform, the theme, the installed apps and the size of uploaded photos remain the merchant's job.
Page weight and speed: what the HTTP Archive shows
The HTTP Archive analyzes millions of websites every month and publishes the Web Almanac, a yearly report on the state of the web. In the 2025 edition, published in January 2026, the median mobile home page weighed 2.6 MB, 8.4% more than a year earlier.
The same chapter matched weight with the speed measured in real visits. The curve goes down without exception:
| Pass CWV | LCP | |
|---|---|---|
| Up to 1 MB | 57% | 2.6 s |
| 1 to 2 MB | 52% | 3.0 s |
| 2 to 3 MB | 45% | 3.2 s |
| 3 to 4 MB | 38% | 3.4 s |
| 4 to 5 MB | 34% | 3.6 s |
| 5 MB or more | 30% | 3.8 s |
Weight does not explain everything: heavy pages usually carry more script too, and the report treats the data as correlation. Even so, pages under 1 MB pass Core Web Vitals almost twice as often as pages of 5 MB or more. And even the light pages do not reach, on mobile, the 2.5 second LCP that Google considers good.
The figure that matters most here comes from another chart in the same chapter. In 2025, 72% of mobile home pages passed the Lighthouse text compression audit. That leaves 28% sending text without proper compression, the cheapest fix on the whole speed list.
What file compression on a website is
Compressing means sending the same information in fewer bytes. On a website, it works differently depending on the type of file:
- Text, lossless. HTML, CSS, JavaScript, JSON and SVG are text. The server compresses each response and the browser decompresses it, receiving an identical file. The browser lists the formats it understands in the
Accept-Encodingheader, and the server states the one it used inContent-Encoding. - Photos and video, with controlled loss. These files are already compressed in their own format. The gain comes from choosing the format (JPEG, WebP, AVIF), the quality and the size in pixels. Running gzip over a JPEG does not help, because the file is already compressed.
- Fonts. The WOFF2 format has Brotli compression built in and, according to the HTTP Archive, cuts file size by up to 30% compared with TTF and OTF.
For text, three formats are in use. gzip is the veteran, accepted by every browser and server. Brotli, created at Google and standardized in 2016 (RFC 7932), compresses the same text further. Zstandard, created at Facebook and standardized in 2021 (RFC 8878), was designed to compress fast and became accepted by Chrome in version 123, in 2024.
Minifying is a separate step: removing spaces, line breaks and comments from code before compressing it. The two add up. And neither replaces the earlier question, which is whether the file needs to be on the page at all.
Test: how much each method removes from real files
To move beyond third-party numbers, we compressed seven text files from roo3.co itself, downloaded as the server delivers them today: two HTML pages (the home page and an article), two JavaScript files and three CSS files, 353.8 KB in total without compression. We used the levels most common on servers (gzip 6, Brotli 5, Zstandard 3) and the highest level of each format.
| Size | Reduction | |
|---|---|---|
| No compression | 353.8 KB | 0% |
| gzip level 6 | 93.5 KB | 73.6% |
| Brotli level 5 | 84.0 KB | 76.3% |
| Brotli level 11 | 75.1 KB | 78.8% |
| Zstandard level 3 | 94.5 KB | 73.3% |
| Zstandard level 19 | 82.1 KB | 76.8% |
Every text compression removed close to three quarters of the weight, which is why having none is the worst case. Brotli at level 11 made the files 19.7% smaller than gzip, but took 90 milliseconds to compress the home page, against 1.6 for gzip. It suits static files, compressed once at publish time, and gets in the way on a page generated on every visit. Brotli at level 5 came out 10.2% smaller than gzip and was just as fast.
Zstandard at level 3 tied with gzip on size; its advantage is speed, which counts on high-volume servers. At level 19 it landed between the two Brotli results and was the slowest of all, at 109 milliseconds.
A figure from our own house: the roo3.co server delivers gzip today. The home page goes from 147.2 KB to 34.0 KB on its way to the browser. With Brotli at level 5, it would weigh 31.4 KB, 7.5% less. That is a gain our own site has not taken yet.
Then the image. We took a product image from our lab (a close-up of a burger) at 2,688 by 1,520 pixels, saved as PNG: 4.0 MB, the kind of file that comes out of an editor and sometimes goes straight into the store. We resized it to 1,600 pixels wide and saved it in each format.
| Size | PSNR dB, higher is more faithful | |
|---|---|---|
| Original PNG 2,688 pixels | 4,015 KB | original |
| PNG lossless | 1,420 KB | reference |
| JPEG quality 80 | 161 KB | 35.0 |
| WebP quality 80 | 126 KB | 36.1 |
| AVIF quality 60 | 97 KB | 35.8 |
Resizing alone removed 65% of the weight. The format did the rest: WebP came out 22% smaller than JPEG and AVIF 40% smaller, both with equal or higher fidelity. The numbers are close to those published by Google, which measured WebP at 25% to 34% smaller than JPEG at the same quality and reports savings above 50% with AVIF.
From the original PNG to AVIF, the image lost 97.6% of its weight. One original photo takes the space of 41 AVIF photos, and a category page with 24 products repeats that math 24 times.
How to compress the files in your online store
The order we follow in ROO3 projects: check what is already there, turn on text compression, handle the images and measure again with real visits.
- Check the header. In Chrome, open the developer tools, Network tab, click the page HTML and look for the Content-Encoding response header:
br,gziporzstd. Without it, the file travels whole. Repeat with a CSS and a JavaScript file. - Run PageSpeed Insights on the home page, a category and a product. It flags uncompressed text files and images larger than needed.
- Turn on Brotli, with gzip as a fallback, on the server or on the content delivery network (CDN). Where the CDN offers Zstandard, it can come in too; the browser picks what it understands.
- Compress static files only once. CSS, JavaScript and SVG can leave the build already compressed at the highest level, with .br and .gz files next to the original. Pages generated on every visit stay at a medium level.
- Resize photos before uploading. A 4,000 pixel photo in an 800 pixel frame is wasted weight. With
srcset, the browser downloads the right size for each screen. - Use AVIF or WebP with a fallback. The
<picture>tag serves AVIF to browsers that accept it and JPEG to those that do not. Check the zoomed photo before publishing, because texture and color are what the customer wants to see. - Do not delay the main photo. The top image, which is usually the LCP, should not be lazy loaded (
loading="lazy") and can getfetchpriority="high". - Keep it in the browser. CSS, JavaScript and images with long caching and a version in the file name are not downloaded again on the next page, and a purchase goes through several.
- Cut what does not need to be there. Scripts from apps nobody uses, fonts with six weights, a video at the top. A file that is not downloaded does not need compression.
On a hosted platform such as Shopify, Nuvemshop or Wix, the platform configures the server. Even so, check the header: the size of your photos, the theme and the apps are still up to you.
To measure, use real visits as well as lab tests. The Core Web Vitals report in Search Console and the field data section of PageSpeed Insights show the last 28 days of Chrome visitors. Compare before and after together with the conversion rate and the bounce rate for the same period.
Advantages of file compression
On the list of speed improvements, compression is one of the best returns per hour of work, because it acts on every file at once and changes nothing the visitor sees.
- Fewer bytes per page, a difference that shows most on mobile and weak connections.
- Faster loading, with a direct effect on LCP, the loading metric in Core Web Vitals.
- Less bandwidth spent on the server and the CDN.
- A better signal for Google, which uses Core Web Vitals in its ranking systems.
- Nothing changes for the visitor: text arrives identical, and photos show no visible difference when the quality is well chosen.
For a store, the advantage that settles the math is the funnel. A lighter page speeds up every step of the purchase at once, from category to checkout, and each step is one of the transitions the Deloitte study measured.
Disadvantages and limits
Compression has a cost and does not solve everything. The limits that weigh most:
- Processing. The highest levels of Brotli and Zstandard take dozens of times longer to compress. On a page generated on every visit, compression time can eat the gain from transferring less.
- Photo quality. Excessive lossy compression blurs texture, stitching and color, which is what the customer looks for in a product photo. Quality has to be checked on the zoomed image.
- Image conversion time. In our test, generating the AVIF took 469 milliseconds, against 13 for the JPEG. In a store with thousands of photos, that adds up when converting the catalog, and older browsers still need a fallback version.
- JavaScript stays heavy after download. Compression shrinks the file on the network, but the browser still has to decompress and run all of it. The HTTP Archive describes the cost of JavaScript as far higher than its file size suggests.
- It does not fix a slow server. If the server takes long to generate the page, or ten third-party scripts compete during loading, compression helps little. Time to first byte comes before any compression.
That is why compression opens the speed work, and the rest (server, scripts, loading order) comes next.
Where ROO3 comes in
At ROO3, websites and sales pages ship with their speed measured before delivery, file by file. In October, we took the roo3.co home page from 81 to 100 on PageSpeed, and this test showed there is still a compression gain on our own server. That is the kind of work in our web design service.
If your store is slow and you want to know where the weight is (uncompressed text, oversized photos, leftover apps), talk to us.
If the question is broader, about what holds back your online sales, the free marketing assessment helps you see where your company stands.
Frequently asked questions
Is it true that Amazon loses 1% of sales for every 100 milliseconds?
The figure comes from internal Amazon A/B tests in 2006, reported by Greg Linden, a former engineer at the company: every 100 milliseconds of delay cost about 1% of sales. Amazon never published the study, and the result applies to the Amazon of that time. Later studies by Google, Bing, Akamai and Deloitte found effects in the same direction, with different sizes.
What is file compression on a website?
It is reducing the size of what a website sends to the browser. Text (HTML, CSS and JavaScript) is compressed without loss by the server with gzip, Brotli or Zstandard and decompressed by the browser. Images are compressed in their own format, by choosing format, quality and size, such as WebP and AVIF.
Which is better: gzip, Brotli or Zstandard?
Brotli compresses more. In our test with roo3.co files, it came out 10.2% smaller than gzip at level 5, at the same speed, and 19.7% smaller at level 11, which is slow and suits static files. Zstandard tied with gzip at level 3. The best setup offers Brotli with gzip as a fallback; the browser chooses.
WebP or AVIF for an online store?
AVIF makes photos smaller: in our test, 40% smaller than JPEG, against 22% for WebP, with equal or higher fidelity. On the other hand, it takes longer to generate. Use AVIF with a WebP or JPEG fallback through the picture tag, and check the zoomed photo before publishing.
How do I know if my website compresses its files?
Open the site in Chrome, go to the developer tools, Network tab, click the HTML and look for the Content-Encoding header in the response. br, gzip or zstd mean compression; without the header, the file travels whole. PageSpeed Insights also flags uncompressed text files.
Does compressing an image make the product photo worse?
It depends on the quality you choose. In our test, JPEG at quality 80, WebP at 80 and AVIF at 60 showed no visible difference in a zoomed crop, with AVIF 40% smaller than JPEG. With quality set too low, texture and color suffer, so the photo should be checked zoomed in before publishing.
- Greg Linden, Geeking with Greg: Marissa Mayer at Web 2.0 (Nov 2006)
- Kohavi et al. (Microsoft), Online Controlled Experiments at Large Scale, KDD 2013
- Jake Brutlag, Google Research: Speed Matters (Jun 2009)
- Akamai, Online Retail Performance Report: Milliseconds Are Critical (Apr 2017)
- Pinterest Engineering, Driving user growth with performance improvements (Mar 2017)
- Matthew Clark (BBC), How the BBC builds websites that scale, Creative Bloq (Jan 2018)
- Deloitte, Milliseconds Make Millions
- web.dev, Milliseconds make millions (details of the Deloitte study)
- web.dev, Zalando case study
- web.dev, Vodafone: A 31% improvement in LCP increased sales by 8% (Mar 2021)
- web.dev, Rakuten 24 case study
- HTTP Archive, Web Almanac 2025: Page Weight
- HTTP Archive, Web Almanac 2025: Ecommerce
- Google for Developers, WebP
- web.dev, Using AVIF to compress images on your site
- IETF, RFC 7932: Brotli Compressed Data Format
- IETF, RFC 8878: Zstandard Compression and the application/zstd Media Type
- Chrome Platform Status, Zstd Content-Encoding
Rodrigo Fávaro
Founder of ROO3, a marketing and technology agency in São José do Rio Preto, Brazil. Builds AI products running in production (Tobia, gerar.app, Pense Mercado) and maintains the AI Benchmark, a public ranking of AI models. See ROO3 AI consulting.
X @rodmf LinkedIn rodrigofavaroKeep reading

SEO, AEO and GEO: the difference, and why you need all three
SEO, AEO and GEO explained without jargon: what each acronym optimizes, where they overlap, what changes in practice...
13 min read
How your company gets cited by ChatGPT and Gemini
What to do, in the right order, for an AI to cite your company when somebody asks about your field. How the model picks...
11 min read
What AI Overviews are and what they change in your traffic
What a Google AI Overview is, how it is assembled, how much traffic it costs according to measured data, and what can...
11 min readWant to apply this in your company?
ROO3 diagnoses what can be automated first in your business. The first conversation is free.