Why Image Weight Directly Impacts Core Web Vitals
On most marketing sites, blogs, and online stores, the Largest Contentful Paint (LCP) element is a hero banner or featured product photo. Google considers an LCP under 2.5 seconds on mobile to be 'Good'. If your hero image weighs 1.8 MB on a typical 4G connection, the browser spends seconds just downloading bytes before it can paint the main viewport.
Compressing that same hero image down to 120–180 KB cuts transfer time dramatically, lowers bounce rates on mobile networks, and trims CDN egress costs.
Practical Image Size Budgets for Web Pages
You do not need complex build pipelines to hit healthy asset budgets. Aim for these practical targets before uploading images to your CMS or repository:
- Above-the-fold hero images: Keep under 150–200 KB (try 70%–80% quality or Target Size mode set to 180 KB).
- Blog post inline graphics & screenshots: Target 60–120 KB.
- Product cards & grid thumbnails: Aim for 20–50 KB each so category pages load rapidly.
- OpenGraph / social share cards (1200×630): Keep around 80–150 KB for fast link previews.
HTML Checklist Beyond Compression
Compression handles file weight, and pairing it with clean HTML attributes ensures top Lighthouse and PageSpeed Insights scores:
- Always declare explicit width and height attributes on <img> tags to prevent Cumulative Layout Shift (CLS).
- Add fetchpriority="high" to your single above-the-fold LCP hero image, and never put loading="lazy" on it.
- Use loading="lazy" and decoding="async" on below-the-fold images so they do not compete with initial render.
- Serve appropriately sized dimensions—avoid shipping a 4000px-wide camera original into a 600px card.