Skip to content
  • Email
  • Facebook
  • X (formerly Twitter)
  • Instagram
  • Linked In
  • Bluesky
  • Projects
  • Contact
  • Online Store
  • Our Products
  • E-Commerce Solutions
  • Blog
  • Home
  • The Mash Tun – Blog
  • Our Projects
  • Online Store
  • Our Products
  • Contact
  • Hosting Solutions
  • E-Commerce Solutions
Two Row Studio

Two Row Studio

Innovative Web solutions

Image Optimization in 2026: WebP/AVIF, DPR, and Lazy-Loading

Image optimization directly impacts Core Web Vitals and user experience. Here’s how to use WebP/AVIF, responsive delivery, and lazy-loading in 2026.

Why Images Matter for CWV

Performance impact

Images are typically the heaviest assets on a page. Large, unoptimized images hurt Largest Contentful Paint (LCP) and waste bandwidth. Proper optimization—format, size, and delivery—can cut page weight by 50-70% and improve LCP significantly.

For WordPress sites, images are often the easiest performance win. Small changes (converting to WebP, adding lazy-loading) deliver big CWV improvements.

Image Formats: JPEG vs WebP vs AVIF

Format comparison

JPEG: Old standard, widely supported, but inefficient. Use only for legacy browser support.

WebP: 25-35% smaller than JPEG at similar quality. Supported by all modern browsers (2026). Use this as your default format.

AVIF: 50% smaller than JPEG, better quality at low bitrates. Support is good but not universal—use with fallbacks.

Conversion strategy

Convert existing images to WebP as a baseline. For hero images and key visuals, also generate AVIF versions and serve them to supporting browsers via <picture> element:

<picture>
  <source srcset="hero.avif" type="image/avif">
  <source srcset="hero.webp" type="image/webp">
  <img src="hero.jpg" alt="Hero image" width="1200" height="800">
</picture>

This delivers the best format each browser supports, with JPEG fallback for old browsers.

Responsive Images with srcset

Serve the right size

Don’t send a 2000px image to a 400px mobile screen. Use srcset to provide multiple sizes and let the browser choose:

<img src="image-800w.webp"
     srcset="image-400w.webp 400w,
             image-800w.webp 800w,
             image-1200w.webp 1200w"
     sizes="(max-width: 600px) 100vw, 800px"
     alt="Product photo" width="800" height="600">

The sizes attribute tells the browser how wide the image will be displayed, and the browser selects the best srcset option.

Device Pixel Ratio (DPR) delivery

High-DPR screens (Retina, 4K) need higher-resolution images. Use 1.5x or 2x images for these devices, but compress them more aggressively—users on high-DPR screens often can’t see compression artifacts.

Lazy-Loading

Native lazy-loading

Use the loading="lazy" attribute on images below the fold. This defers loading until the image is about to enter the viewport, saving bandwidth and improving LCP.

<img src="below-fold-image.webp" loading="lazy" alt="Supporting image" width="600" height="400">

Don’t lazy-load above-the-fold images (hero, logo)—this delays LCP.

JavaScript lazy-loading

For older browser support, use a JavaScript library like lazysizes. But in 2026, native lazy-loading is sufficient for most sites.

Compression and Quality

Compression targets

For WebP, aim for 75-85 quality. For AVIF, 60-70 quality often looks equivalent to JPEG 85.

Use tools like Squoosh or ImageOptim to test quality settings visually. Compress as much as you can without visible degradation.

WordPress plugins

Use plugins like ShortPixel or Smush to automate conversion and compression. These can bulk-convert existing images and handle new uploads automatically.

Accessibility: Alt Text

Why alt text matters

Alt text describes images for screen readers and displays when images fail to load. Every image needs descriptive alt text—it’s an accessibility requirement and an SEO benefit.

Good alt text: “WordPress dashboard showing Core Web Vitals metrics”
Bad alt text: “image123.jpg” or blank

References

WebP Image Format
AVIF Image Format
Google WebP Documentation

Key Takeaways

  • Use WebP as default, AVIF for best quality/size ratio with fallbacks.
  • Implement responsive images with srcset and sizes.
  • Lazy-load below-the-fold images with loading="lazy".

Get performance optimization help

Post navigation

Previous: AI-Assisted Content in WordPress: Editorial Guardrails That Actually Work
Next: Consent Mode v2 and Privacy Basics for WordPress

More Like This

Are you Losing Traffic Because of the Pictures on Your Website?

Read More

2 thoughts on “Are you Losing Traffic Because of the Pictures on Your Website?”

  1. Jan B says:
    August 18, 2022 at 6:47 pm

    This is a great overview of a topic that plenty of site developers and owners all too often overlook. In the race to include as much visual content as possible and grab attention, they forget about how many resources this actually consumes. Very handy guide to the different plugin options that are available for overcoming this.

    Reply
    1. Eric says:
      August 18, 2022 at 7:19 pm

      Thanks, Jan! Thankfully, it’s becoming easier to have the best of both worlds, but it still requires a bit of thought.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Home
  • Our Process
  • The Mash Tun – Blog
  • Hosting Services
  • E-Commerce Solutions
  • Online Store
  • Projects
  • Our Products
  • Need Help?
  • Contact
  • Cart
  • My Account
Two Row Studio Logo

Join the Mailing list!

Get Website and Digital Marketing tips right to your inbox by joining our mailing list. Also learn about promotions and offers.

This field is for validation purposes and should be left unchanged.
Name

Proudly powered by WordPress | Theme: Harvest by Two Row Studio. © 2026