A product page in a multi-brand fashion boutique weighed about 3 MB. After we converted more than 40,000 images to WebP, the same page weighs 1.4 MB.
The store is an online shop for a clothing and accessories boutique with about 60 brands and about 4,300 product cards with sizes. Goods, sizes, stock and prices update from the client’s accounting system about once an hour. Fashion stores live on photos, and every product has several of them, so images are where page weight comes from. Below is where the weight sits on a typical product page, the options for moving a large catalogue to WebP, and a checklist you can run on your own store.
Why product pages get heavy
A clothing product page usually loads far more images than the one a buyer looks at first:
- the main photo and the gallery, often five to ten shots per item;
- thumbnails for the gallery;
- related products and “you may also like” blocks, each with its own photo;
- brand logos, banners and icons from the theme;
- photos in reviews, if the store allows them.
Each of these can be a JPEG or PNG uploaded straight from a camera or a supplier, at a resolution meant for print. Multiply that by a few thousand products and new arrivals every season, and the media library grows faster than anyone checks it.
Scripts and fonts add weight too, but on a fashion store they are rarely the biggest part. Open the Network tab in your browser on a product page, filter by “Img”, and look at the total. On a fashion store, images usually take the largest share.
What we changed on this store
On this boutique, converting more than 40,000 images to WebP took a product page from about 3 MB to 1.4 MB.
| Metric | Before | After |
|---|---|---|
| Product page weight | about 3 MB | 1.4 MB |
| Server response with page caching | about 2 s | 0.3–0.4 s |
| Product cards | about 4,300 | about 4,300 |
The server response line comes from separate work: we added page caching, and the server now answers in 0.3–0.4 s instead of about 2 s. The two numbers measure different things. Server response is how long the first byte takes. Page weight is how much the browser downloads after that. A store needs both to feel fast on a phone.
The store runs on WordPress and WooCommerce with Elementor Pro, Rank Math and nginx. We have supported it since 2024. The full case is on the multi-brand fashion boutique case page.
Why WebP
WebP is an image format that browsers have supported for years. For photos, a WebP file is usually noticeably smaller than a JPEG of similar visual quality, and it supports transparency, so it can also replace many PNGs. All current versions of Chrome, Safari, Firefox and Edge display it.
AVIF compresses even better in many cases, but it takes longer to encode, and encoding tens of thousands of files is a real cost on a server. For a large existing catalogue, WebP is often the practical first step, and AVIF can come later for the most viewed images.
Ways to move a catalogue to WebP
There are three common approaches. Which one fits depends on the platform, the hosting and how products arrive in the store.
| Approach | How it works | Watch out for |
|---|---|---|
| Convert files on the server | A script or plugin creates a WebP copy next to each original. The web server sends WebP to browsers that accept it | the server config needs a correct Vary: Accept header, or caches may send WebP to the wrong client |
| Plugin that rewrites image URLs | The CMS outputs WebP URLs in the HTML, often inside <picture> tags | page builders and themes sometimes insert images the plugin does not see |
| Image CDN | A CDN converts and resizes on the fly | an extra service to pay for and configure; URLs in old content may need changes |
Whatever you choose, keep the originals. You may want to re-encode later at different quality or into AVIF, and you cannot get detail back from a compressed copy.
On a store whose catalogue syncs from accounting, new products keep arriving. With an hourly sync of goods and prices, as on this boutique, a one-time conversion is not enough on its own, because the photos of new products have to be converted too. New uploads can be converted either at upload time or by a scheduled job that picks up new files.
Other things that cut product page weight
Format is one lever. These help on most stores as well:
Serve the right size. A phone does not need a 2,000-pixel-wide photo for a 400-pixel slot. WordPress and most platforms generate several sizes and list them in srcset, but themes and page builders sometimes request the full-size file anyway. Check which file the browser actually downloads on a phone.
Lazy-load what is below the fold. Related products, reviews and the lower part of the gallery can wait until the buyer scrolls. Use loading="lazy" on those images.
Do not lazy-load the main photo. The first product image is usually the Largest Contentful Paint element. Load it normally, and consider fetchpriority="high" on it.
Set width and height. Images without dimensions make the page jump while it loads, which hurts Cumulative Layout Shift and annoys buyers who are trying to tap a size.
Clean the media library. Old seasons, duplicate uploads and unused sizes take disk space and backup time, even if they never reach the page.
Check social previews. Some social networks and messengers handle WebP poorly in link previews. If shared product links lose their picture after a switch to WebP, serve a JPEG for the og:image tag.
How to measure before and after
Measure the same page, on the same device profile, before and after the change:
- Open the product page in Chrome with DevTools, Network tab, “Disable cache” checked.
- Reload and note the total transferred size at the bottom of the panel.
- Filter by “Img” and note the image share.
- Run Lighthouse or PageSpeed Insights in mobile mode and save the report.
- Repeat on two or three product types: an item with a large gallery, an item with one photo, a category page.
Write down the numbers with the date. Page weight drifts as new products and banners arrive, so a measurement without a date is hard to compare later.
If your store syncs stock and prices from accounting software, our article on syncing an online store with your accounting system covers that part. For a store with slow server response, see 4,300 products and a 3.7 s server response. Our ecommerce development services page describes the store work we take on.
Checklist: product page weight
- Measure total page weight on a product page with the browser cache off, and note the image share.
- List image formats in the media library. Count JPEG and PNG files and their total size.
- Pick a WebP delivery method that suits your platform: server-side conversion, a plugin, or an image CDN.
- Keep the originals for future re-encoding.
- Convert new uploads automatically, including images that arrive through a catalogue sync.
- Check
srcseton a phone to confirm the browser loads a size close to the slot width. - Lazy-load images below the fold and keep the main product photo eager.
- Add width and height to every product image.
- Test link previews in the social networks and messengers your buyers use.
- Re-measure with a date and keep the numbers next to your other store metrics.
FAQ
How big should an ecommerce product page be?
There is no official limit. Lighter is better on mobile networks, and Google’s Core Web Vitals reward a fast Largest Contentful Paint, which depends heavily on the main product image. On this fashion store, a product page went from about 3 MB to 1.4 MB after the move to WebP. Compare your pages with your own earlier numbers and with competitors in your niche.
Will WebP reduce image quality?
WebP is a lossy format by default, like JPEG, so quality depends on the settings. At sensible settings most buyers will not notice a difference on product photos. Test a few images with fine fabric texture or detailed patterns before converting the whole catalogue, and keep the originals in case you need to redo them.
Do all browsers support WebP?
All current versions of the major browsers display WebP. Very old browsers do not, which is why server-side and <picture> setups keep a JPEG or PNG fallback. For most stores the fallback is now rarely used, but it costs little to keep.
Do we need to redo images every time products sync from accounting?
Only the new and changed ones. If photos arrive with products from a sync, set up conversion to run on upload or on a schedule, so new items do not bring back the old file sizes.
What would you like to do next?
Discuss a project
Tell us about the task. Within one working day we reply with questions or a first view on scope and cost.
Ask a question
A short question about your app, website or idea. An engineer replies by email.
Get new articles
New articles and case studies by email, no more than once a month. Unsubscribe at any time.