When the marketing team asked "why is the campaign page slow?", the investigation we opened found the page weighed 11 megabytes. Of that, 9.6 megabytes were images, and the cover image alone was a 4.2-megabyte PNG — exactly as the designer had exported it, published untouched. We reworked the images and touched nothing else: page weight dropped to 1.1 megabytes, and LCP fell from 4.8 seconds to 1.9 seconds. On the product detail pages, a similar cleanup had cut image weight by more than ninety percent.
More than half the weight of an average web page is images, so roughly half your speed problem is probably sitting there too. And here's the good news: image optimization is the highest-return, lowest-risk job in the world of web performance. Minimal code changes, dramatic gains. Let me walk through our recipe step by step.
The format question: WebP is the safe harbor, AVIF the ambitious neighbor
As of 2026, there's almost no valid reason left to serve JPEG and PNG in their raw form. WebP is the safe standard today: full support in all modern browsers, files roughly 25-35 percent smaller than JPEG, and transparency support on top of that (it broke PNG's monopoly). AVIF is even more ambitious: it offers additional savings of up to 40-50 percent and, especially at low quality settings, produces visibly cleaner results than WebP. Browser support is now broad; the price is longer encode times — you'll feel it in batch conversions.

An observation on quality settings, too: for most photos, the 75-80 quality range produces results that are indistinguishable to the eye. The "set quality to 100 so nothing degrades" reflex inflates the file two or three times over, and nobody sees the difference on screen — we ran a blind test on product images, and no one, designers included, could tell 80 from 95. The type of image matters as well: photos are the domain of lossy formats; for logos, icons and illustration-style graphics, SVG always wins if available, and otherwise lossless WebP is worth considering.
In practice we recommend two strategies. The meticulous one: serve AVIF → WebP → JPEG in order with the <picture> element; the browser takes whatever it understands, and nobody is left out. The pragmatic one: convert everything to WebP and leave AVIF to the CDN — modern image CDNs can pick the format on the fly based on what the requesting browser supports. On small and mid-sized projects the second path usually wins; simplicity is an engineering value too.
Sending everyone the same image is just rude
The second topic, as important as format, is size — and in my view this is where the real bulk of image waste lies. Most teams talk about format and forget about size, yet the wrong size wastes far more bytes than the wrong format. Making a 360-pixel phone screen download a photo that's 2400 pixels wide is an insult to both the user's mobile data plan and your LCP. (The 4.2-megabyte cover image from the opening was exactly this: exported from the design file at 5000 pixels wide, displayed on the site in a 1200-pixel slot.) The solution has been sitting in the standard for years: with the srcset and sizes attributes you offer 3-4 width variants of the same image, and the browser picks the one that fits the device. If generating variants by hand sounds like drudgery (you're right), CDNs' on-the-fly resizing via URL parameters automates the whole thing.
Let's draw a small line for Retina screens: 2x the display size is enough resolution. For an image shown in a 300-pixel slot, a 600-pixel variant is ideal; sending 1200 pixels makes no difference and only wastes bandwidth. The "just in case, let's use the big one" instinct always loses in the world of images.
The most common lazy loading mistake
Now a critical distinction — because the LCP mistake we see most often in the field lives right here. loading="lazy" is a great tool, but it's meant for images below the fold. Lazy-loading the cover image, the largest element and the first thing visible on the page, is telling the browser "don't rush to load this." The result: you delay your own LCP with your own hands. Do the opposite — give the LCP image fetchpriority="high" so the browser moves it to the front of the queue. For everything below the fold, use loading="lazy" with a clear conscience: native browser support, no JavaScript library, free performance.
The second mistake living in the same neighborhood is img tags without dimensions. An image with no width/height (or aspect-ratio in CSS) pushes the page layout around the moment it loads; the content jumps just as the user is about to tap a button, and they tap the wrong thing. In metrics it's called CLS; in users it's called irritation. Dimensions on every img tag — no exceptions. Frankly, it still surprises me how often such a simple rule is violated; it was missing on more than half the sites I've reviewed over the years, and fixing it literally amounts to writing two attributes.

Not a one-time cleanup, but a working pipeline
Now for the sustainability side, because that's the real issue. With the recipe above you can make your site sparkle today; three months later someone on the content team uploads a 6-megabyte photo through the admin panel and the effort quietly melts away. The fault isn't that person's — a system in which whoever adds content has to know about formats and sizes is a badly designed system.
That's why we built optimization into the pipeline on the platform: automatic conversion at upload time (upload → size variants → WebP/AVIF → CDN). The content team and sellers alike drop whatever file they want into the panel; what reaches the visitor is always the right format at the right size. A good system makes the right behavior the default — it doesn't try to train its users.

It's worth posting a guard next to the pipeline, too: we add a simple budget rule to CI or to the pre-release check step — something like "no page may exceed this many kilobytes of images in total." When the rule is violated, the release stops and the issue gets solved within the team before it turns into a user complaint. A performance budget sounds like a corporate ritual, but in practice it's a one-line threshold check; it takes half an hour to set up.
Don't leave this work unmeasured. Record Lighthouse scores, LCP values and, if possible, conversion rate before and after optimization. In the 11-megabyte case I described at the start, the moment management was truly convinced wasn't the score table but the increase in the order rate coming from mobile — speed isn't an abstract virtue, it's a measurable revenue line. Optimization that speaks in numbers always comes out of the budget meeting stronger.
One final reminder: not a single item in this recipe requires a new framework, a big refactor or an infrastructure change. The right format, the right size, the right loading order and an automated pipeline — that's all. It's hard to spend a higher-return week in web performance.
If you're curious about your site's image report card, opening the browser's network tab and adding up the image rows will take you half an hour; on most sites, as in that 11-megabyte campaign page story, the number turns out to be surprising. I enjoy talking through what you find; the contact page is open.