PageSpeed fix guide ·

Avoid enormous network payloads: how to make a heavy page lighter

Avoid enormous network payloads means the page downloads too many bytes on a first visit. Lighthouse flags pages over 5,000 KiB, and our speed test flags pages over 3 MB, because phones on mobile data feel every megabyte. On a typical store about half of the bytes are pictures, so shrink images first, then cut scripts, fonts and outside widgets.

In PageSpeed Insights
Avoid enormous network payloads
In a FlashMax report
The page is heavy

52.4% of the 40,951 WooCommerce stores FlashMax tested have this problem. See the study

The short fix

  1. Test the page and open the list of its largest files.
  2. Compress the biggest pictures and serve them as WebP or AVIF at the size they are shown.
  3. Replace autoplay videos and animated GIFs, and load video and map embeds on click.
  4. Remove scripts, fonts and widgets the page doesn't need.
  5. Re-test until a first visit is well under 3 MB.

What PageSpeed Insights is telling you

PageSpeed Insights lists Avoid enormous network payloads under Diagnostics, with a line like "Total size was … KiB" and the largest files first. The total counts every file the page downloaded during the test: HTML, images, scripts, styles, fonts, video and everything from other domains.

Lighthouse flags pages whose requests exceed 5,000 KiB (about 5.1 MB) and suggests aiming below 1,600 KiB (about 1.6 MB). In a FlashMax report the card is The page is heavy; it appears when the page weighs more than 3 MB.

Like other diagnostics, it doesn't change the score directly. The bytes do, through the metrics they slow down.

Why it slows the page

On a phone, all of a page's files share the same limited bandwidth. The more bytes compete with the main image, the later it appears, so heavy pages tend to have a slow Largest Contentful Paint (25% of the Lighthouse score). Big scripts add main-thread work on top, which raises Total Blocking Time (30%).

There is a cost to visitors as well. Lighthouse's documentation points out that large payloads cost users real money when they pay for mobile data.

How common it is, and where the bytes go

In our study of 40,951 WooCommerce store home pages (Lighthouse 13, phone settings), 52.4% of stores (21,450) weighed more than 3 MB. Their median phone score was 45, against 59 for lighter stores. That gap is a correlation, not proof: heavy pages tend to have other problems too.

The score falls as weight grows. Page weight, stores, median phone score, share scoring 90 or more:

  • Under 1 MB: 3,174 stores, median 75, 16.6% score 90+
  • 1–2 MB: 8,535 stores, median 60, 2.2%
  • 2–3 MB: 7,792 stores, median 52, 0.7%
  • 3–5 MB: 8,993 stores, median 47, 0.3%
  • 5–10 MB: 7,610 stores, median 44, 0.2%
  • Over 10 MB: 4,847 stores, median 42, 0.2%

Where the bytes go on the median store (each figure is its own median, so they don't add up, and files from other domains overlap the other types): the whole page 3.15 MB, images 1.39 MB, JavaScript 646 KB, files from other domains 410 KB, fonts 225 KB, CSS 166 KB. In the study, pictures made up a median 49.8% of a page's bytes. Method and caveats are in the WooCommerce speed study.

How to find the heaviest files

  1. Run a free test. The FlashMax speed test shows the page weight and the files behind the card in about a minute.
  2. Read the list in PageSpeed Insights. Expand Avoid enormous network payloads: the biggest files come first, so the top few usually explain most of the weight.
  3. Check in Chrome DevTools. Open the Network panel, tick Disable cache to load the page like a first-time visitor, and reload. The status bar at the bottom shows how much was transferred and how big the files are uncompressed. Type larger-than:100k into the filter box to list only files over 100 KB.

Check the phone version too: themes and page builders can send different pictures to phones and computers.

How to fix it on WordPress and WooCommerce

Pictures first

  • Right size. WordPress makes several sizes of every upload, and since WordPress 5.3 it scales uploads larger than 2,560 pixels down to that size. A theme, slider or page-builder widget set to "Full" size still sends the biggest file, so pick the size closest to how wide the picture is shown. Resize an image before upload if it is far bigger than needed.
  • Modern formats. Lighthouse's own advice for this warning includes using WebP instead of JPEG or PNG. Use an image plugin that converts on upload, or convert by hand with JPG to WebP and PNG to WebP.
  • Compression. Lighthouse's docs suggest a JPEG quality of 85. Compress images in the browser (files never leave your device), or squeeze a picture to a target size with compress to 100 KB.
  • Lazy loading below the first screen. Since WordPress 5.5, images in post content, excerpts, text widgets and those printed with wp_get_attachment_image get loading="lazy" when they have width and height. Chrome then fetches them only as the visitor scrolls near them (from about 1,250 px away on fast connections, 2,500 px on slow ones). Never lazy-load the main image at the top; see LCP request discovery.

The full picture checklist is in Improve image delivery.

Video and animated GIFs

  • A self-hosted hero video is a large download. If you keep it, add a poster image (shown while the video loads) and preload="none" or preload="metadata", and consider a still image on phones.
  • Animated GIFs can be huge. web.dev recommends converting them to MP4 or WebM and playing them in a <video> element.
  • Replace YouTube and map embeds with a preview that loads on click; see Reduce third-party code.

Sliders and product grids

Every slide and every product card brings another picture. Cut home-page sliders to the slides that earn clicks, and show fewer products at once: in classic themes go to Appearance > Customize > WooCommerce > Product Catalog and lower Products per Row or Rows per Page. Lighthouse's own WordPress advice for this warning points the same way: show excerpts and fewer posts per page.

Scripts, fonts and outside widgets

  • JavaScript was the second-largest file type in our study. Remove plugins you don't use and unload the rest where they aren't needed: Reduce unused JavaScript.
  • Fonts: serve WOFF2 only, load just the weights you use, and subset files to the alphabets you need. web.dev notes that WOFF2 compresses about 30% better than WOFF. More in Font display.
  • Files from other domains came to a median 410 KB per store: Reduce third-party code.

Shopify and hand-built sites

Shopify. The image_url and image_tag Liquid filters generate srcset, add width and height and serve images from Shopify's CDN; use them instead of hand-built image URLs, and add sizes so phones get a small file. Shopify's theme guide also warns against two hero images, one for phones and one for computers, switched with CSS: use a <picture> element so the browser downloads only the one it shows. Apps are the other big source of bytes, so remove the ones you don't use.

Hand-built sites. The same <picture> pattern works anywhere:

<picture>
  <source media="(max-width: 767px)" srcset="/img/hero-phone-800.webp" width="800" height="1000">
  <img src="/img/hero-1600.webp" alt="Wool coats, winter sale" width="1600" height="700" fetchpriority="high">
</picture>

Make sure the server compresses HTML, CSS and JavaScript with Brotli or gzip (Enable text compression). Caching doesn't lower first-visit weight, but it spares returning visitors the download (Use efficient cache lifetimes).

Mistakes to avoid

  • Two hero images switched with CSS. Hiding the desktop picture on phones with CSS may not stop it downloading; Shopify's guide recommends <picture> for exactly this case.
  • Lazy-loading the first-screen image. It delays the main image. Lazy-load only what sits below the first screen.
  • Turning off WordPress's big-image scaling with add_filter( 'big_image_size_threshold', '__return_false' ); and then using 6,000-pixel originals as product photos.
  • Measuring with a warm cache. A normal reload transfers almost nothing. Tick Disable cache in DevTools or use a fresh private window.
  • Compressing until products look bad. Check the zoomed product image on a phone after compressing.
  • Moving bytes instead of removing them. A CDN can deliver the same 5 MB faster, but it is still 5 MB on a visitor's data plan.

How to check the fix worked

  1. Clear the site and CDN cache, then re-test the page with FlashMax or PageSpeed Insights two or three times. Ads, rotating sliders and outside widgets can change the total between runs.
  2. Read the new "Total size was … KiB" line and the top of the file list. Aim for well under 3 MB on a first visit.
  3. Re-test a category page and a product page as well; they have their own pictures and scripts.
  4. Field data (LCP from real visitors in PageSpeed Insights and in Search Console's Core Web Vitals report) covers the last 28 days, so give it about four weeks.

Questions people ask

How big should a web page be?

Lighthouse flags pages over 5,000 KiB and suggests aiming below 1,600 KiB; our speed test flags anything over 3 MB. In our study, WooCommerce stores under 1 MB had a median phone score of 75, and stores over 10 MB a median of 42.

What is the difference between KiB and KB?

A KiB is 1,024 bytes and a KB is 1,000 bytes, so 5,000 KiB is about 5.1 MB. Lighthouse reports KiB; many other tools, ours included, use KB and MB.

Does lazy loading reduce page weight?

For pictures well below the first screen, yes: with loading="lazy" the browser fetches them only when the visitor scrolls near them, so a first visit downloads less. It does nothing for pictures in the first screen, which should never be lazy-loaded.

Why is the page heavier in PageSpeed Insights than in my browser?

PageSpeed Insights loads the page like a first-time visitor, with an empty cache, and counts files from every domain. Your own browser has most files cached. In Chrome DevTools, tick Disable cache in the Network panel to see the first-visit weight.

Will a CDN fix this warning?

No. A CDN can deliver files faster and from closer to the visitor, but the page still weighs the same. Fix the files themselves: smaller pictures, less JavaScript, fewer fonts and widgets.

Sources

  1. Avoid enormous network payloads (Chrome for Developers)
  2. Network features reference (Chrome DevTools)
  3. Browser-level image lazy loading for the web (web.dev)
  4. Introducing handling of big images in WordPress 5.3 (Make WordPress Core)
  5. Lazy-loading images in 5.5 (Make WordPress Core)
  6. <video>: The Video Embed element (MDN)
  7. Replace animated GIFs with video for faster page loads (web.dev)
  8. Best practices for fonts (web.dev)
  9. Product Catalog (WooCommerce documentation)
  10. Performance best practices for Shopify themes (Shopify)

Rather have it done?

The FlashMax team fixes the issues in your report, on a copy first, and shows the before-and-after.

See the speed optimization service

              AMERICANEXPRESSPayPalDISCOVERstripeVISA