1. Home
  2. Blog
  3. Performance

Stop Layout Shift by Properly Sizing WordPress Images

Performance

October 14, 2026

A page that jumps while images arrive feels broken even when the final design is fine. Cumulative Layout Shift (CLS) measures that jump. One of the most common causes on WordPress is an image that loads without reserved space, so the text below it slides down the moment the file appears. Lightify’s free Properly Size Images setting exists so you can properly size WordPress images: make them load at correct dimensions so the browser reserves the right space and content does not jump as they arrive.

If you have already tried other CLS fixes and the score still wobbles on image-heavy templates, this is the toggle to understand next. This guide stays inside Lightify’s Media Optimizations docs, explains how the setting sits beside lazy load and critical image preload, and shows how to verify it without guessing.

What “properly size” means in Lightify

Open Lightify > Settings > Media Optimizations. Under image optimizations you will find:

  • Lazy-Load Images (free, on by default). Defers loading until images are near the viewport. The first couple of images are excluded automatically so your hero is not delayed. That count is filterable with lightify_lazy_load_above_fold_count.
  • Properly Size Images (free, on by default). Makes images load at correct dimensions so the browser reserves space and CLS improves.
  • Preload Critical Images (Pro, on by default with Pro). Finds the largest above-the-fold image, almost always the LCP element, and tells the browser to fetch it immediately.
  • Auto Image Optimization (Pro). Converts images pages actually use into WebP and swaps them in place, including video posters, picture sources, image preloads, and CSS background images.

In the settings keys these appear as values such as properlySizeImages. Toggles are stored as the strings on and off, not booleans. Changing a setting does not rebuild cached pages by itself, so purge after you flip anything on a live site.

The docs are direct about the CLS role: properly sizing images “directly improves CLS.” That is the claim to hold onto when you are prioritizing which media toggles to verify first.

Why WordPress sites get this wrong so often

WordPress makes it easy to upload a 3000px photo into a 600px column. Themes and page builders then output an img tag that may lack width and height, or that relies on CSS alone to shrink the file visually while the browser still does not know the intrinsic box early enough. The result:

  1. Text and buttons render.
  2. The image request finishes.
  3. The browser discovers the real height.
  4. Everything below shifts.

Lazy loading can make the shift more noticeable on long pages, because below-the-fold images pop in as you scroll. Proper sizing does not cancel lazy load. It gives the browser a stable box so the late paint does not shove the layout.

Lightify’s own guidance on getting the most from the Media tab starts with a related truth: optimization cannot fix a 3000px image shown in a 600px slot. It will be smaller after WebP conversion, but it is still the wrong image if you upload giant files. Properly Size Images helps the layout. Sensible uploads help the bytes.

Free and Pro on this tab

On Lightify’s free and Pro table for Media Optimizations:

FreePro
Lazy-load imagesAuto image optimization to WebP
Properly size imagesPreload critical images
Lazy-load videosYouTube video previews
Lazy-load iframes

So you can ship properly sized images on the free plugin from WordPress.org. Preloading the LCP image and converting to WebP need Pro. Pro is part of the DaftPlug membership; one license covers every DaftPlug Pro plugin, with plans that differ by number of sites. See pricing.

If you only enable one Pro media feature later, Preload Critical Images is the highest-value companion, because LCP is 25% of the performance score in common lab tooling. The docs call it out that way.

How Properly Size Images works with its neighbors

Lazy load

Lazy load and proper sizing are complementary. Lazy load delays the network fetch. Proper sizing keeps the layout honest while that fetch is pending. Leave both on unless you have a measured reason not to.

Watch the automatic above-the-fold exclusion. Lightify skips lazy load on the first couple of images so LCP is not delayed. If a page builder injects the hero late, that exclusion can miss it. The Media docs warn that preloading and lazy loading fight each other: if your hero is both preloaded and lazy-loaded, the browser may still fetch it late. Lightify avoids this for the first images on a page, but a builder-injected hero can slip past. If LCP looks worse than expected, check whether the hero has loading="lazy".

Preload critical images (Pro)

Preload tells the browser to fetch the likely LCP image immediately. Proper sizing keeps that image from shifting neighbors when it paints. Use them together on Pro sites.

Detection scans the first several images and ignores anything too small to be a hero. Both behaviors are filterable with lightify_lcp_scan_images and lightify_lcp_min_image_area if you need to tune detection.

Auto WebP (Pro)

WebP conversion shrinks bytes. It does not invent dimensions. Convert after you are happy with upload sizes and after properly size is on. Then purge, because cached pages built before conversion can still reference originals. Confirm in the network panel that responses are actually WebP; a CDN in front of WordPress can strip or override the swap.

Videos and iframes

Lazy-load videos and lazy-load iframes are free and on by default. They are not substitutes for properly sizing images, but they stop heavy embeds from competing on first paint. YouTube video previews (Pro) go further by replacing the embed with a thumbnail until click.

A practical setup sequence

  1. Measure first. Open PageSpeed Insights or your browser performance panel and identify whether CLS is driven by images, fonts, ads, or injected banners. The related guide on fixing WordPress layout shift with Lightify CLS settings covers the broader CLS toolkit. This post focuses on the image dimension piece.
  2. Confirm Properly Size Images is on. It defaults to on. If someone turned it off while debugging, turn it back on.
  3. Purge page cache after any change. Lightify stores settings in lightify_settings; visitors keep receiving pages built under the old configuration until you purge.
  4. Upload at display size for new media. Do not rely on the plugin to rescue every oversized original forever.
  5. On Pro, enable Preload Critical Images if it is not already on, then re-check LCP.
  6. Re-test the templates that matter: homepage hero, product gallery, blog single with wide featured images, landing pages with multiple content images.

How to verify it is working

Lab scores alone can mislead. Pair them with a quick front-end check:

  1. Open the page with developer tools, network and performance panels ready.
  2. Throttle to a mid-tier mobile profile so image arrival is visible.
  3. Watch whether text below images jumps when those images paint.
  4. Inspect a few img tags. You want the browser to know width and height early enough to reserve space.
  5. Scroll a long post and confirm below-the-fold images do not shove headings around as they lazy load.
  6. If you use a CDN or reverse proxy, purge that layer too, then repeat.

If CLS improves in the lab but real users still report jumps, look for late-injected banners, cookie consent, or web fonts with large metric differences. Properly Size Images will not fix those.

Common failure modes

Someone disabled the setting while “testing performance.” Defaults are usually right. Turning properly size off to chase a micro-benchmark is a common self-own on image-heavy themes.

Page builder background images. Auto Image Optimization (Pro) can handle CSS background images as part of WebP conversion, but proper sizing is about the layout box for content images. Background-driven heroes still need explicit CSS dimensions or aspect-ratio rules in the builder.

Cached HTML from before the change. Always purge Lightify’s page cache and any host or CDN cache after media setting changes.

Fight between lazy load and preload on the hero. Check the hero markup for loading="lazy" when LCP regresses after enabling preload.

Giant originals. Proper sizing stabilizes layout. It does not make a 4MB photo a good idea. Combine with sensible uploads and, on Pro, WebP conversion.

Where this sits in a wider Lightify plan

Media Optimizations are “the most direct route to a better score” when images are the largest thing on the page and the usual LCP element. Asset Optimizations (minify, unused CSS, delay JS, fonts) and Network Improvements (smart link prefetch, preconnect) still matter, but they do not replace correct image boxes. Bloat removal (emojis, oEmbeds, dashicons, Heartbeat throttle, XML-RPC) removes other weight. Score alerts can email you when Core Web Vitals move.

A sane order for many sites:

  1. Page cache and browser cache sane.
  2. Media: lazy load on, properly size on, critical preload on (Pro), WebP on (Pro) after a purge.
  3. Then unused CSS and delay JS, one at a time, with testing.
  4. Then network hints only when the waterfall shows a late third-party origin.

Staging checklist before you call CLS “fixed”

  1. Pick three templates: homepage, a product or service page with a large image, and a long post with several content images.
  2. Record a short performance trace on each before changing anything.
  3. Confirm Properly Size Images is on; enable Preload Critical Images if you are on Pro and it was off.
  4. Purge Lightify, host cache, and CDN.
  5. Re-record the traces and compare CLS and LCP, not only a single PSI number.
  6. Scroll the long post on a real phone. Lab desktop traces miss many image shifts that only appear while scrolling.
  7. Only then decide whether WebP conversion or theme CSS aspect-ratio rules are the next lever.

This sequence keeps you from enabling five Media toggles at once and guessing which one helped.

FAQ

Is Properly Size Images a Pro feature?

No. It is listed on the free side of Lightify’s Media Optimizations free and Pro table, alongside lazy-load images, videos, and iframes.

Does it replace width and height in the block editor?

It is a front-end optimization setting, not a media library editor. Still set sensible sizes when you insert images. The plugin’s job is to make the served markup reserve space correctly for what the theme outputs.

Will it fix CLS from web fonts or ads?

No. It targets image-driven shift. Use the broader CLS settings and theme fixes for fonts, sticky bars, and injected UI. See the related CLS guide linked above.

Do I need to rebuild anything after enabling it?

Purge caches. Lightify does not rebuild every cached page automatically when a setting changes. Visitors otherwise keep old HTML.

Wrap up

To properly size WordPress images is to give the browser a stable box before the file arrives. Lightify’s free Properly Size Images toggle does that job on the Media Optimizations tab, sits next to lazy load by default, and pairs cleanly with Pro critical image preload and WebP conversion. Measure CLS, leave the sensible defaults on, purge after changes, and stop uploading oversized originals into small slots.

Explore Lightify for the full performance toolkit, or compare membership plans on the pricing page.