uses-responsive-images
•
Savings: 1.5 MB - 5.0 MB payload reduction
How to Properly Size Images & Serve Responsive Next-Gen Formats
Serving 4000px desktop banner photography to 390px mobile screens causes massive bandwidth waste and memory pressure on smartphones.
Technical Breakdown: What Causes This Issue?
Images often account for 60% to 75% of total page weight. When a content editor uploads a 12MB raw DSLR photograph and embeds it on a mobile web page, the browser has to download 12MB of data only to scale it down to 350px width.
How to detect if your page is affected:
- Lighthouse flags "Properly size images" with high byte savings.
- Rendered size is drastically smaller than intrinsic image file dimensions (e.g. Rendered: 360×240px, Natural: 2880×1920px).
- Page weight exceeds 3.0 MB on mobile reports.
Step-by-Step Resolution Workflows
Install ShortPixel, Imagify, or Smush. Set maximum upload dimension to 1920px. Enable automatic srcset generation and convert all uploads to WebP or AVIF. Use Cloudflare Polish or BunnyCDN Optimizer for automated edge-resizing.
add_filter('script_loader_tag', function($tag, $handle) {
if (is_admin()) return $tag;
if (strpos($tag, 'defer') !== false) return $tag;
return str_replace(' src=', ' defer src=', $tag);
}, 10, 2);
Use Shopify Liquid image URL filters to specify exact dimensions: `{{ image | image_url: width: 600 }}` instead of raw image source. Always define `srcset` attributes covering 360w, 720w, 1080w, and 1440w.
<script src="{{ 'theme.js' | asset_url }}" defer></script>
<picture>
<source srcset="/img/banner-390.webp 390w, /img/banner-768.webp 768w, /img/banner-1280.webp 1280w" sizes="(max-width: 640px) 100vw, 1200px" type="image/webp">
<img src="/img/banner-1280.jpg" alt="Promotional Banner" width="1200" height="600" class="w-full h-auto">
</picture>
Frequently Asked Questions
Is WebP or AVIF better for website speed?
AVIF achieves 20% to 35% higher compression than WebP at identical visual fidelity. However, WebP has near 100% browser compatibility, so pairing both via `<picture>` is best practice.
What is the ideal image size for e-commerce product grids?
Product thumbnails should be under 40 KB in WebP, with natural dimensions around 600×600px rendered at 300px with 2x retina density.
Why does Lighthouse report properly size images even when I resized in CSS?
CSS width/height only changes visual layout on screen, not the downloaded byte payload. The raw file itself must be scaled down.
Audit Your Live Website
Test if your domain passes this audit with sub-2s mobile loading:
Want guaranteed 90+ score without breaking anything?
Our senior performance engineers optimize your assets, configure server-level caching, and fix uses-responsive-images with a 100% money-back guarantee in 48 hours.
Fix on WhatsApp (₹8,999)