The WordPress image size mistakes that slow down pages are serving camera-sized files in small slots, giving the browser the wrong responsive size hints, and assuming a smaller-looking image must weigh less. Start with one slow page: use your browser’s Network panel to see which file visitors actually download, then compare its pixel dimensions and transfer size with the space it occupies. Fix that mismatch before bulk-compressing your Media Library.
Find the Oversized Image Visitors Actually Download
“Image size” can mean three things: the dimensions of the downloaded file, the dimensions of the image on the page, or the number of bytes transferred. They’re related, but they’re not interchangeable. Dragging the corner of an Image block can make the picture look smaller without changing the download. CSS is very good at making a large mistake look compact.
- Open a representative page while logged out, so you see what most visitors see. In Chrome or Edge, open Developer Tools and select Network. Check Disable cache with DevTools open, select the Img filter, and reload.
- Look at the Size column and inspect the largest image requests. Use the request preview to match a file to the page. If a below-the-fold image hasn’t appeared in the list, scroll until it loads. Note the file URL and transfer size; check the file’s pixel dimensions in the preview or open the requested asset separately and inspect its dimensions.
- Use the element picker in the Elements panel to select the matching image. Check its rendered width and inspect
src,srcset, andsizesif present. Don’t assumesrcis the downloaded URL: the Network request tells you what the browser actually fetched. - Switch to a phone-sized viewport and reload rather than just shrinking the window. Compare the requested file again. A browser can keep using a larger candidate it has already loaded, so a simple resize is not a reliable test.
Allow for high-density screens before calling a file oversized. A photo displayed at 400 CSS pixels may reasonably use an 800-pixel-wide file on a 2× display. A 2400-pixel-wide file in that same slot is worth investigating. Start with the visible images that transfer the most bytes, especially a hero or lead photo. A large file farther down the page may matter less to the initial load if it’s genuinely lazy-loaded.
Match the File to the Slot, Not the Source Photo
Use a WordPress image size that fits the layout
For an existing Image block, select it in the editor and open the block settings. Look for Resolution or an image-size selector, if available, and choose a suitable generated size instead of Full Size. Labels and choices vary with the editor, theme, and block. A control labeled width or dimensions may change only the layout, so save the change and verify the fetched file on the published page.
For a new upload, start with the widest slot the image needs to fill and allow for the display densities you intend to support. A photo used only in a 420-pixel column might start with an export around 840 pixels wide for a 2× screen. That’s a starting point, not a rule for every image. A full-width hero or a photo that opens in a zoomable gallery has different needs. Crop first if the layout will otherwise hide a large portion of the frame.

Check that the browser knows how wide the slot is
WordPress can output srcset and sizes for Media Library images, depending on how the block or theme renders them. With width-based candidates, srcset lists available files and their widths; sizes tells the browser how wide the image is expected to appear at different viewport widths. The browser uses those hints and factors such as screen density to pick a candidate.
If a three-column card is treated as though it spans the whole viewport, the browser may fetch a larger candidate than it needs. Check several cards at desktop and mobile widths. When the mismatch repeats across a grid, fix the shared block or template rather than replacing every photo. If a theme or page builder controls the markup, use its responsive image settings if available, or ask the maintainer to correct the slot width it communicates. The browser doesn’t know that the designer meant “one-third.”
Trim the Bytes Without Blurring the Image
Once the dimensions make sense, check the file weight. Export a separate copy rather than overwriting your original. For photos, compare a reasonably compressed JPEG or WebP if your WordPress setup supports it. For screenshots, check small text and sharp lines closely: PNG can be a better fit when clarity matters, while a suitable WebP export may weigh less. Compare the exports at the size readers will actually see, then verify the response in Network. A CDN or optimization plugin may serve a different format from the one you uploaded.
Test the replacement on one page before changing a shared asset. The same image might also be a featured image, gallery item, or product photo, and a smaller replacement can look fine in a card but poor when opened at full size. Keep the original available until you’ve checked those uses.
Troubleshoot Images That Still Load Too Large
- The editor looks right, but Network still shows the old URL. Reload with browser caching disabled, then check whether the published page still points to the old asset. If it does, verify that you edited the right block or template and clear the affected page from the site or CDN cache if your setup allows it. Disabling the browser cache doesn’t clear a server or CDN cache.
- Older uploads don’t have the size your layout needs. A theme change or a new image-size setting doesn’t necessarily create those files for existing attachments. Test regeneration on staging or on one backed-up attachment using a trusted tool your setup supports. Keep existing derivatives during the test because older pages may still link to them. Regeneration can’t produce a sharp large image from a small original.
- There’s no responsive markup on the hero. Inspect the container’s computed styles for
background-image. A CSS background doesn’t use an Image block’ssrcset. Check whether the builder offers device-specific backgrounds and verify which asset it fetches on mobile. If the photo is content rather than decoration, consider a regular Image block so it can use responsive markup and carry alternative text. - The hero is lighter, but it still appears late. Check the request’s start time in the Network waterfall. If the main above-the-fold image has
loading="lazy", check whether the theme or optimization plugin lets you exclude that image. Leave below-the-fold images lazy-loaded where appropriate. A smaller file helps it finish faster; it doesn’t make a late request start earlier.
Finish by repeating the Network check on the same page at the same desktop and mobile widths. Confirm that the intended file loads, fewer bytes transfer for the target image, and the crop and detail still hold up. If you fixed a shared template, spot-check another page that uses it before rolling out Media Library changes.