Skip to content
Performance & shop operations

Image Maintenance: WebP, AVIF and Faster Shop Load Time

WebP, AVIF, lazy loading and an automated image pipeline keep page weight and load time stable in a running shop and protect the Core Web Vitals over time.

12 min read BilderWebPAVIFPerformanceLadezeit

In short and in plain language

A shop keeps getting new images. They are often too large. Then the shop loads more slowly.

Images are often the largest part of a page. So looking after your images pays off.

Modern image formats make files smaller. Images further down load only when needed. But the first big image should load fast.

A fixed process checks and shrinks every new image by itself. We set this up and keep an eye on loading time.

An online shop collects images the way an attic collects boxes. Every new product brings photos, every campaign its banners, every editor uploads whatever is at hand – often straight from the camera, unchecked and uncompressed. What looks harmless in isolation adds up in daily operation to a real load-time problem. Images are the single largest resource type on the median mobile page, accounting for around 911 KB (Web Almanac 2025 / HTTP Archive). At the same time, only about 11 percent (Web Almanac 2025 / HTTP Archive) of pages use the efficient WebP format, and AVIF only on under two percent – a huge, untapped saving. This article shows how ongoing image maintenance with WebP, AVIF, lazy loading and an automated pipeline keeps load time stable instead of letting it slowly decay. Anyone who takes ongoing shop maintenance seriously treats images as a permanent topic, not a one-off task.

Key takeaways

  • Images are the single largest resource type on the median mobile page at around 911 KB (Web Almanac 2025 / HTTP Archive) – heavier than JavaScript, CSS and fonts combined. That makes them the most effective single lever for load time.
  • The individual file is not the problem, the volume is: the median image weighs only about 12 KB (Web Almanac 2025 / HTTP Archive), yet a median mobile page loads around 15 images (Web Almanac 2025 / HTTP Archive).
  • WebP is the practical standard for product images, AVIF compresses harder and is growing fast: usage rose by around 386 percent (Web Almanac 2025 / HTTP Archive) in two years. JPEG stays as the fallback via the picture element.
  • Format drift is an organisational problem, not a technical one: as long as people upload images, uncompressed files come back. Only an automatic pipeline of upload check, compression, format variants and size steps holds the state.
  • Images act directly on the Core Web Vitals: the hero image is usually the LCP element, so it must not be delayed by lazy loading. Missing width and height attributes are a main cause of layout shifts.

Why Images Dominate Page Weight

Images are the quiet revenue killer in shop operation. They do not stand out like a server outage; they just make the page a little heavier, piece by piece. The numbers from the HTTP Archive prove it impressively: on the median mobile page, around 911 KB (Web Almanac 2025 / HTTP Archive) goes to images – by far the single largest resource type, heavier than JavaScript, CSS and fonts combined. The overall median mobile page weight has climbed to around 2.56 MB (Web Almanac 2025 / HTTP Archive), roughly tripling compared with a decade ago. So anyone who wants to keep load time under control has to start with images – no other area puts so much weight on the scale at so little risk.

It is not the individual file that is the problem, but the sheer number. The median image on the web weighs only around 12 KB (Web Almanac 2025 / HTTP Archive) – completely harmless. Yet a median mobile page loads around 15 images (Web Almanac 2025 / HTTP Archive), and the 75th percentile of the largest image per page already sits at 404 KB (Web Almanac 2025 / HTTP Archive). That means every fourth page has at least one motif that alone swallows almost half a megabyte – typically the large hero or product image that users see first. This exact image determines the perceived load time. Without ongoing performance monitoring, such an outlier often goes unnoticed for months while the bounce rate quietly rises.

Images are the biggest saving

Because images make up the largest share of page weight, optimising them is the single most effective lever for load time. No other area – neither scripts nor fonts – offers so much untapped saving at so little risk to functionality in the typical shop. A kilobyte less image weighs the same as a kilobyte less code, but is far easier to save.

WebP and AVIF: Modern Formats With Big Savings

WebP and AVIF are the two modern image formats that compress significantly more efficiently than classic JPEG – at the same or better visible quality. WebP is now supported by all current browsers and is the practical standard for product images. AVIF goes one step further in compression and delivers the smallest files for most motifs, though depending on the image it needs a little more computing time to generate. Yet adoption is alarmingly low: only around 11 percent (Web Almanac 2025 / HTTP Archive) of pages use WebP, and AVIF only on under 2 percent (Web Almanac 2025 / HTTP Archive). That is a huge, literally idle saving that most shops simply leave on the table.

The good news: AVIF is catching up fast. Its use has grown by around 386 percent (Web Almanac 2025 / HTTP Archive) over the past two years – from a low level, but with a clear direction. For ongoing shop operation, this means: anyone who sets up an image pipeline today that automatically generates WebP and AVIF and delivers them with a JPEG fallback secures the speed advantage without locking out older browsers. The modern picture technique serves every browser the best format it understands – this has been lived practice for years and is part of the open web standards (W3C). Manual format decisions per image are not needed; the pipeline handles them automatically.

WebP as the standard

Supported by all current browsers and noticeably smaller than JPEG – the pragmatic base format for product and category images.

AVIF for best values

Currently the best compression at comparable quality; ideal for large hero and product images with a high data share.

JPEG as fallback

Via the picture element, older browsers receive a JPEG while all others automatically get the more modern, smaller format.

Quality versus size

A sensible compression level saves most of the bytes without the motif visibly suffering to the human eye.

Automatic conversion

Every uploaded image is converted server-side into several formats – entirely without manual work from the editorial team.

Retina and mobile

For sharp display on high-resolution screens, several size variants are generated and delivered as appropriate.

Format Drift: How Uploads Erode Load Time

The most common reason a once-optimised shop becomes slow again is called format drift. It refers to the gradual return of uncompressed images into daily operation: an editor uploads a product photo straight from the camera – 4,000 pixels wide and several megabytes heavy. The shop scales it down in the display but still delivers the enormous original file. A marketing agency sends campaign banners as an uncompressed PNG. A new plugin brings its own images that no one has checked. Every single case looks harmless; together, the load time slowly tips into the red.

Format drift is not a technical but an organisational problem – and that is exactly why one-off optimisations do not solve it. As long as people upload images, it will happen. The answer is an automated image pipeline that intercepts every incoming image, scales it down, compresses it and converts it into modern formats before it is ever delivered to a visitor. This turns a question of discipline into a question of technology. As with ongoing broken-link and redirect maintenance, the rule holds: what is not continuously monitored decays again on its own in operation.

FormatCompressionTransparencyUse in the shop
JPEGbaselinenot included fallback for older browsers
PNGlossless, often largeincluded logos and graphics
WebPclearly better than JPEGincluded standard for product images
AVIFcurrently best compressionincluded top format with fallback

Caution: the original file decides

Whether an image is displayed small in the layout says nothing about the file size actually delivered. If the 4,000-pixel original is only shrunk via CSS, the browser still downloads the full megabytes. Only server-side downscaling to the size actually needed for display saves real weight – scaling in the browser does not.

The Automated Image Pipeline in Operation

A robust image pipeline consists of five steps that run automatically on every upload. First, the upload check: the size and format of each image are verified, and unrealistically large files are flagged or capped directly. Second, compression: the image is re-encoded with low loss so that superfluous bytes disappear without the motif visibly suffering. Third, format conversion: WebP and AVIF variants plus a JPEG fallback are created from the original. Fourth, responsive preparation: several size steps are generated so a smartphone does not have to load the desktop version. Fifth, delivery via a cache or CDN that quickly serves the matching variant.

  • Upload check: maximum pixel width and file size are enforced before an image even enters the shop
  • Low-loss compression of every file to a sensible quality level without visible loss
  • Automatic generation of WebP and AVIF with a JPEG fallback via the picture element
  • Several size variants per image for mobile, tablet, desktop and high-resolution displays
  • Meaningful alt texts as a mandatory field – good for accessibility and for search engines
  • Delivery with a long-lived cache header and an optional CDN for short load times worldwide

This pipeline is not a one-off project but a permanent part of maintenance. With every update, every new plugin and every theme change, the configuration can shift – for instance when an extension brings its own, unoptimised image output. A regular plugin audit with an eye on performance uncovers such side effects before they drive up page weight. It is also important to convert the existing image stock retroactively: a shop with thousands of legacy images benefits most from a one-time bulk conversion, which is then permanently secured by the ongoing pipeline.

Using Lazy Loading and Responsive Images Correctly

Small files alone are not enough – what also matters is when and in what size an image loads. Lazy loading ensures images are only loaded once they move into the visible area. The native loading='lazy' attribute is available today in all current browsers and needs no additional library. On a long category page with many products, this saves enormously: instead of all fifteen or more images, the browser first loads only the ones actually visible. The exception is the large image above the fold – this one should specifically not be delayed, because it directly determines perceived load time.

Responsive images via the srcset and sizes attributes ensure each device receives exactly the right size. A smartphone with a 400-pixel-wide display then loads a small variant, a large desktop monitor the large one – instead of everyone getting the same oversized file. Combined with modern formats, this delivers the maximum effect: the right format in the right size at the right time. This technique is part of the open web standards (W3C) and is understood by all relevant browsers. Our monitoring services continuously check whether these mechanisms actually take effect in operation and survive updates.

Do not delay above the fold

The first large image is loaded immediately so that perceived load time and the LCP value do not suffer.

Lazy loading below

All images outside the visible area load only on scroll – natively via loading=lazy, without a library.

Fixed dimensions

Height and width are specified so the layout does not jump on load and the CLS value stays stable.

srcset and sizes

Every device receives the matching image size instead of one oversized file for all resolutions.

Avoid layout shifts

Every image needs fixed width and height values or a reserved aspect ratio. Without them, content jumps on load – this worsens Cumulative Layout Shift and leads to misclicks. Fixed dimensions are the simplest lever for visual stability and cost only two attributes in the markup.

Images, LCP and the Core Web Vitals

Images have a direct effect on the Core Web Vitals – the metrics for user experience that Google uses as a ranking factor. Largest Contentful Paint (LCP) measures when the largest visible element has loaded; on product and home pages that is almost always an image. A good LCP value is 2.5 seconds or below at the 75th percentile. An uncompressed hero image can ruin that value on its own, while the same motif as an optimised AVIF meets the threshold effortlessly. That makes image maintenance not a cosmetic topic but a direct lever for search visibility and conversion.

The hero image decides the LCP

On most shop pages the largest visible image is also the LCP element. When exactly this image is delivered as a modern format in a fitting size and without lazy-loading delay, the most important load-time value often improves noticeably – with a single, targeted intervention rather than a costly overhaul.

The second affected value is Cumulative Layout Shift (CLS). It measures how much content jumps while loading. Images without a fixed size specification are one of the main causes: the text is already there, then the image loads and pushes everything down. The solution is simple – specify width and height or reserve an aspect ratio. Anyone who takes image maintenance seriously monitors LCP and CLS continuously and treats every drop like an incident. Load tests for peak traffic also quickly show how strongly unfavourably delivered images slow a page down under load.

Anchor Image Maintenance in the Maintenance Contract

So that image quality is not left to chance, it belongs in the maintenance contract as a fixed component. In concrete terms: a defined image pipeline with agreed upper limits for file size and pixel width, a regular check on whether new uploads and plugins respect those limits, and ongoing monitoring of LCP and page weight. That turns a one-off optimisation into a lasting state. Our maintenance services bundle exactly these components – from the initial setup of the pipeline through the bulk conversion of the legacy stock to the monthly review of the metrics.

Set up the pipeline

Automatic compression, WebP and AVIF generation and responsive variants are set up cleanly once.

Convert the legacy stock

Existing images are converted once into modern formats so that the stock, too, becomes noticeably lighter.

Monitor continuously

Page weight, LCP and CLS are measured continuously; every degradation triggers a targeted check.

The economic benefit is immediate: a faster page improves the user experience, reduces abandonment and has a positive effect on search visibility. At the same time, an automated pipeline relieves the editorial team, who no longer have to worry about formats and compression. Which services are sensibly bundled in such a contract is shown by the overview of maintenance packages and pricing. Anyone who combines image maintenance with further operational topics such as legal texts kept up to date and database and media upkeep keeps the entire shop in shape over time – technically, legally and in terms of speed.

A shop rarely becomes slow because of a single huge image, but because of hundreds that no one keeps track of any more. Only an automated pipeline takes this responsibility off the editorial team for good.

From project practice in shop operation
This article is based on data from: Web Almanac 2025 (HTTP Archive), in particular the Media and Page Weight chapters, and the open web standards of the W3C (picture element, responsive images). Supplemented by project experience from maintaining online shops. The figures cited can vary by industry and shop size.

Related Articles

Maintenance & updates

Plugin Audit: Better Performance Through Less Bloat

Conduct a plugin audit: identify unnecessary extensions, analyze performance impact, find alternatives and safely deactivate for faster load times.

15 min read
Maintenance & updates

Database Maintenance and Optimization for Online Shops

Database maintenance for online shops: index optimization, fixing slow queries, cleanup, backups and growth monitoring for fast and stable online stores.

15 min read
Performance & shop operations

Load Testing for Peak Traffic: Scale Before Sales Days

Black Friday and sales peaks bring a multiple of normal load. Plan load testing 6 to 8 weeks ahead: realistic scenarios with buffer, breaking point and scaling.

12 min read