typescriptz
How-To Guide 2026-11-20

How Responsive Images (srcset & sizes) Break Quietly on Phones

A photo can look great on your laptop while phones download a broken 404 image or a giant 4MB desktop file. Here is how to spot and fix responsive image mistakes.

How Responsive Images (srcset & sizes) Break Quietly on Phones
Top silent bug
Missing sizes
Invalid syntax
Mixing w & x
Variant links tested
Up to 12 live
Prevents page jump
width & height

4 Responsive Image Mistakes That Slow Down Phones

MistakeWhat Goes WrongSimple Fix
1. Using w without sizesBrowsers guess the photo is 100% screen-wide and download a huge fileAlways pair width labels (400w, 800w) with a matching sizes attribute.
2. Mixing w and xBreaks the HTML rule so browsers ignore the whole srcsetUse only w for flexible photos, or only 1x / 2x for fixed-size icons.
3. Dead 404 Variant URLDesktop looks fine, but tablets or phones show a broken image boxTest every URL listed inside srcset to make sure it returns HTTP 200.
4. Missing width & heightText jumps down the screen while photos loadInclude explicit width and height numbers on every <img> tag.

Cite This Study

Typescriptz (2026). "How Responsive Images (srcset & sizes) Break Quietly on Phones: 4 Common Mistakes." https://typescriptz.com/blog/fix-broken-responsive-images-srcset-sizes/
<a href="https://typescriptz.com/blog/fix-broken-responsive-images-srcset-sizes/">How Responsive Images (srcset & sizes) Break Quietly on Phones — Typescriptz</a>

Common Questions

Do I need srcset on tiny icons or logos?
Small logos work fine with simple 1x / 2x labels (or SVG). Width-based srcset (400w, 800w, 1200w) matters most on large hero photos and blog images.
Why didn't I notice a broken srcset image on my computer?
Your computer only downloads the size that matches its screen width, so a broken 400w mobile file stays invisible until someone opens your site on a phone.