Images are the largest contributor to page weight on the modern web and have a direct, measurable impact on loading speed, network usage, and Core Web Vitals. This article examines image formats and compression methods in current use, evaluates their performance characteristics, and documents how image delivery decisions affect real-world website performance across mobile and desktop environments.
The analysis is based on observed data from large-scale web measurements (including Chrome UX Report and HTTP Archive) and focuses on practical outcomes related to transfer size, decoding cost, and rendering behavior.
Images as a Performance Constraint
Across multi-year datasets from HTTP Archive, images account for approximately 60–65% of total page bytes on median web pages. This proportion is consistent across mobile and desktop.
While improvements in JavaScript bundling, transport protocols, and caching have reduced overhead elsewhere, inefficient image delivery remains a primary bottleneck. Reductions in image payload produce larger performance gains than comparable optimizations in most other asset types.
Image Format Usage on the Web
Recent large-scale crawls indicate the following approximate distribution of image formats:
- JPEG: ~30–35%
- PNG: ~25–30%
- GIF: ~15–18%
- SVG: ~6–8%
- WebP: ~12–15%
- AVIF: ~1–3%
Legacy raster formats (JPEG, PNG, GIF) continue to represent over 70% of images served, despite widespread browser support for WebP and AVIF. This gap aligns closely with CMS defaults, existing media libraries, and static build pipelines rather than technical limitations.
Compression Strategy and Performance
Compression strategy is a primary determinant of image performance. Format selection and compression method together define transfer size, decoding cost, and rendering behavior.
Lossy Compression
Lossy compression permanently removes image data based on perceptual models.
Formats supporting lossy compression:
- JPEG
- WebP (lossy)
- AVIF (lossy)
- GIF (palette-based)
Observed characteristics:
- Substantially reduced file sizes
- Lower network transfer time
- Improved Largest Contentful Paint (LCP) outcomes
- Slightly increased decode cost (format dependent)
Measured outcomes:
- Lossy WebP is typically 25–35% smaller than JPEG
- Lossy AVIF is typically 40–60% smaller than JPEG and 20–35% smaller than WebP
Lossy compression is appropriate for photographic and continuous-tone imagery, which constitutes the majority of images contributing to LCP.
Lossless Compression
Lossless compression preserves pixel-exact fidelity.
Formats supporting lossless compression:
- PNG
- WebP (lossless)
- SVG
- TIFF (lossless variants)
Observed characteristics:
- Larger transfer sizes
- Increased sensitivity to network latency
- No visual degradation
Lossless compression is appropriate for UI assets, logos, icons, screenshots with text, and graphics requiring exact color reproduction. Data indicates frequent overuse of lossless formats for photographic content, resulting in avoidable performance penalties.
Format-Specific Performance Characteristics
JPEG
- Universal support
- Very fast decoding
- No transparency
- Median bits-per-pixel (bpp): ~2.0
JPEG decoding performance is excellent, but compression efficiency is lower than modern formats, leading to larger transfer sizes and slower LCP.
PNG
- Lossless compression
- Transparency support
- Median bpp: ~3.5–4.0
PNG is appropriate for graphics and UI assets. Its use for photographs correlates with excessive payload and degraded performance.
GIF
- 256-color limitation
- Poor compression efficiency
- High byte cost for animation
Animated GIFs are consistently several times larger than equivalent MP4, WebM, or animated WebP assets.
SVG
- Vector-based
- Resolution independent
- Minimal transfer size for suitable content
SVG performs well for icons and logos but is not applicable to photographic imagery.
WebP
- Lossy and lossless modes
- Transparency and animation support
- Median bpp: ~1.3
- Slightly higher decode cost than JPEG
WebP provides a reliable reduction in transfer size with minimal compatibility risk.
AVIF
- Highest compression efficiency
- Median bpp: ~1.3–1.5
- Supports HDR and wide color
- Higher decoding cost
AVIF reduces network transfer size significantly. On real networks, reduced transfer time often offsets increased decoding cost, particularly on mobile.
Mobile and Desktop Performance Considerations
Mobile devices exhibit higher latency, lower bandwidth stability, and reduced decoding throughput compared to desktop systems. Inefficient image delivery has a larger impact on mobile Core Web Vitals, particularly LCP.
CrUX data shows lower rates of “Good” LCP on mobile, with image transfer size strongly correlated with failures.
Core Web Vitals and Images
Largest Contentful Paint (LCP)
Empirical measurements indicate:
- 70–85% of LCP elements are images
- Hero images dominate LCP attribution
Common contributors to poor LCP:
- Large JPEG or PNG hero images
- Absence of preload or fetch priority hints
- Lazy loading applied to LCP images
- Cache misses at the CDN or origin
LCP images should be served immediately, in the most efficient supported format, without lazy loading.
Cumulative Layout Shift (CLS)
CLS is strongly associated with:
- Missing width and height attributes
- Lazy-loaded images without reserved layout space
- Dynamically injected media
Correct dimension specification prevents most image-related CLS.
Interaction to Next Paint (INP)
Images affect INP indirectly by:
- Consuming main-thread decode time
- Competing for network resources
- Triggering late layout recalculations
While JavaScript is the primary INP driver, inefficient image delivery increases interaction variability.
Responsive Images and Delivery Efficiency
HTML supports responsive delivery via srcset, sizes, and <picture>. Large-scale measurements show widespread misconfiguration.
Observed issues include:
- Incorrect
sizesattributes - Oversized candidate images
- Browser selection of larger-than-necessary assets
These issues result in significant unnecessary transfer, directly impacting LCP and bandwidth usage.
Lazy Loading and Priority Management
Native lazy loading reduces initial payload when applied correctly.
Observed guidelines:
- Lazy-load below-the-fold images only
- Do not lazy-load LCP images
- Reserve layout space
- Use fetch priority for critical images
Misapplied lazy loading consistently correlates with delayed LCP.
Automated Image Delivery
Automated image pipelines and CDNs:
- Detect browser format support
- Serve AVIF, WebP, or JPEG as appropriate
- Resize per device characteristics
- Cache optimized variants at the edge
Sites using automated delivery exhibit higher modern format adoption and more consistent Core Web Vitals outcomes.
Identified Performance Opportunities
Data indicates the largest remaining gains come from:
- Converting photographic content to lossy WebP or AVIF
- Eliminating GIF animations
- Correcting responsive image sizing
- Preventing image-driven CLS
- Avoiding lazy loading of LCP images
- Automating format negotiation and resizing
These changes routinely produce 30–70% reductions in image payload and measurable LCP improvements.
Summary
Image delivery remains the largest unresolved performance constraint on the web. Modern formats, compression methods, and delivery mechanisms are broadly supported and well understood. Consistent application of these techniques yields measurable improvements in loading speed, stability, and user experience.