Theme: Dawn (tested on v15.5.0) File: snippets/product-media-gallery.liquid
Issue: The sizes capture block for the thumbnail strip uses calc((100vw - 8rem) / 3) as the mobile fallback, but thumbnails are displayed 4-per-row on mobile, not 3. This causes the browser to request a ~533px rendition for a slot that renders at ~301px, triggering a PageSpeed Insights warning: “This image file is larger than it needs to be (533x533) for its displayed dimensions (301x301).”
Additionally, both image_tag calls in the thumbnail <ul> request width: 416 with widths: '54, 74, 104, 162, 208, 324, 416' — the max width exceeds what the thumbnail slot ever renders at.
Fix:
- Change
calc((100vw - 8rem) / 3)→calc((100vw - 8rem) / 4) - Change
image_url: width: 416→image_url: width: 320(both instances) - Change
widths: '54, 74, 104, 162, 208, 324, 416'→widths: '54, 74, 104, 162, 208, 320'(both instances)
Small fix, global PageSpeed impact for all Dawn stores with video/model thumbnails.