TUTORIAL6 MIN READ

How to Check Served Image Variants in WordPress

Published

Checking served image variants in WordPress starts with opening Chrome DevTools' Network tab on a live page rather than trusting a plugin's optimization report. The dashboard shows settings and intent; the actual browser request shows what reached the visitor, file format, transferred size and which srcset candidate the browser chose. This guide walks through that verification step by step.

Why plugin dashboards can be misleading

Image optimization plugins typically report counts of images processed, bytes they claim to have saved, and the percentage converted to a modern format. These figures describe what the plugin attempted, not necessarily what a visitor's browser downloaded on a given page load. Caching layers, CDNs, theme fallback markup and browser format negotiation can all change the final request between the plugin's processing step and the rendered page. A setting showing 'enabled' does not confirm the output visitors actually receive.

The only reliable way to know what was served is to inspect a real page load in the browser, on the actual front end, with caching behaving normally. That means opening the live URL, not a staging preview or the wp-admin media editor, which can show a different variant than the one a visitor gets.

How to check served image variants in WordPress with Chrome DevTools

  • →Open the published page in Chrome (not a wp-admin preview).
  • →Open DevTools with F12 or right-click and choose Inspect.
  • →Switch to the Network tab and filter by Img.
  • →Reload the page with the cache disabled checkbox ticked, so you see fresh requests.
  • →Click the specific image request you care about, usually the largest or the one above the fold.

Illustrative example of reading the request

Illustrative example, not a measured test: picture a product page where the original upload was a 4000-pixel-wide photo. After reloading with the Network tab open, you might see a request named something like product-845x1024.webp, with a Content-Type header of image/webp and a transferred size of roughly 180 KB. Your own numbers will differ depending on host, theme, and plugin configuration, the point is reading the row yourself rather than assuming it from a plugin's summary screen.

How to verify the image format and transfer size

To verify the actual image delivered, inspect the Network tab in browser developer tools and check the Content-Type header and the transferred file size, rather than trusting the file extension in the URL. A file named photo.jpg can technically be served with a different content type if a plugin or CDN rewrites it, and the reverse is also possible.

Chrome's Network tab usually shows two numbers near the response: a transferred size (what travelled over the network, which may include compression) and a resource or content size (the decoded byte count). Use the transferred figure when you care about what the visitor's connection actually carried.

If you expect AVIF, confirm the header actually says image/avif rather than assuming it from a theme setting. WordPress has supported AVIF image uploads since version 6.5, but this depends on the server's image processing library, Imagick or GD, actually supporting AVIF encoding. A host without that support can silently fall back to JPEG or PNG even when AVIF is selected in settings, so checking the real header matters more than checking a checkbox.

How to confirm the browser is selecting the right srcset candidate

The browser uses the srcset attribute to identify the available image candidates and the sizes attribute to determine the layout width for selection, then picks whichever candidate best matches the rendered width and device pixel ratio. This choice happens inside the browser; WordPress only offers the candidates, it does not force one.

  • →Right-click the target image and choose Inspect.
  • →In the Elements panel, find the img tag and open the Properties or Computed tab.
  • →Look for the currentSrc property, this is the exact URL the browser decided to load, not just the first entry in srcset.
  • →Switch DevTools into responsive design mode, pick a mobile width, and reload to see whether currentSrc changes to a smaller candidate.

If currentSrc points to the largest available file regardless of viewport width, the sizes attribute or the theme's image markup is likely wrong, and recompressing the source alone will not fix that mismatch.

Steps to fix oversized or incorrectly formatted images

Once you have identified a mismatch between what the theme intends and what the browser actually requests, work through the following checks before changing settings broadly.

  • →Check the original upload size. WordPress automatically scales down images wider than 2,560 pixels by default, which limits how large an upload can be, but this safeguard does not guarantee a well-sized responsive set exists for every theme placement.
  • →Regenerate thumbnails after changing a theme's registered image sizes, since existing posts keep whatever derivative sizes existed at the time they were uploaded.
  • →If relying on AVIF, confirm a derivative was actually produced rather than assuming it from a plugin setting; fall back deliberately to WebP or JPEG where the host cannot encode AVIF.
  • →Check whether the above-the-fold image is marked loading="lazy". WordPress has added this attribute automatically to images with width and height attributes since version 5.5, and core tries to skip the first few images to protect the largest contentful paint, but theme or plugin markup can still interfere.
  • →Re-run the DevTools check on both a mobile width and a desktop width after any change, since the browser's srcset choice depends on viewport.
Panel and fieldWhat it tells you
Network tab, Content-Type headerThe actual format delivered, independent of the file extension in the URL
Network tab, transferred sizeBytes sent over the network for that specific request
Elements tab, img currentSrcWhich srcset candidate the browser actually chose for the current viewport
Elements tab, loading attributeWhether the image is lazy-loaded, which matters if it is the largest contentful paint candidate

What this check cannot tell you

Confirming the format and srcset candidate on one browser does not guarantee the same result everywhere. CDNs and plugins can negotiate format differently per visitor, and caching may show you a stale variant if you forget to disable cache or use a private window. Treat the check as a snapshot for the browser and viewport you tested, and repeat it on at least one mobile width before concluding the setup is correct.

Smaller transferred bytes can help the largest contentful paint metric, but they do not directly improve time to first byte, and they will not fix layout shift caused by images without reserved width and height. Treat file size, server response time and layout stability as separate problems to check separately.

As a next step, open your homepage's largest image in DevTools right now and confirm the Content-Type, the transferred size and the currentSrc value match what you expect for both a desktop and a mobile viewport, before changing any plugin setting based on its dashboard alone.

Ready to optimize your images?

TRY ZIPMYIMAGES FREE →

Related guides