Website performance
How Image Size Affects Core Web Vitals
Learn how image dimensions, loading behavior and reserved space affect LCP and CLS, and why compression alone does not fix every performance problem.
Which Core Web Vitals can images affect?
Largest Contentful Paint (LCP) measures when the largest visible image or text block is rendered. A prominent photograph may be that element, but it is not automatically the logo or the largest file on the page. Identify the measured element first. Google’s LCP guide explains why discovery, download and rendering delays all matter.
Cumulative Layout Shift (CLS) measures unexpected movement. Images without reserved space can push surrounding content down when they arrive. The CLS guide recommends giving images dimensions so the browser can reserve their aspect ratio.
Interaction to Next Paint (INP) concerns responsiveness to user interactions. Compressing a photo does not automatically fix a slow menu or code that takes too long to respond to a click. Investigate those separately using the INP documentation.
What counts as a good Core Web Vitals result?
| Metric | Good result |
|---|---|
| LCP | ≤ 2.5 s |
| INP | ≤ 200 ms |
| CLS | ≤ 0.1 |
These are the thresholds for a good result in Google’s Core Web Vitals guidance. All three must meet their targets at the 75th percentile of real visits, with mobile and desktop assessed separately. A smaller image or one good lab run does not establish that a page passes. If INP is the failing metric, investigate interaction delays rather than repeatedly recompressing the photograph.

Start with the main visible image
On a product page, inspect the primary product photograph. On an article, inspect the cover image or heading identified by the performance report. Write down its current file size, pixel dimensions and displayed size before making a copy. This gives you a useful before-and-after comparison.
If a photograph is much larger than its display area requires, prepare a smaller version with the image resizer. Then compare a WebP export using JPG to WebP. Judge whether visitors can see the product details or read the text, not just how much smaller the file is.
Let the browser start the main image early
Do not lazy-load an image that is the page’s LCP element. A tiny file can still appear late if the page waits for scripts before discovering it. Ask your theme or site developer to check the actual image request when compression produces little improvement.
Use lazy loading selectively for images farther down the page. Treat a gallery differently from its first visible photograph: visitors need the opening view immediately, while later gallery images can arrive as they approach them.
For the image identified as LCP, check the rendered page rather than assuming the first uploaded image is the important one. It should be discoverable promptly and should not be lazy-loaded. A developer can consider fetchpriority="high" for that specific image; adding high priority to every gallery item defeats the purpose of choosing a priority. Recheck the network trace after changing it.
Keep the layout stable
Provide the image’s width and height in the markup and use responsive styling that preserves its proportions. Check the result on both a narrow phone and a wide desktop. If the design intentionally crops the image, reserve the crop’s display area consistently.
Also inspect nearby banners, embeds and fonts when movement continues. Replacing an image cannot solve a notice that is inserted above the article after the page has already appeared.
For a normal responsive image, HTML dimensions such as width="1200" and height="800" describe its aspect ratio. CSS can still display it narrower with max-width: 100% and height: auto. Check that your theme does not override this with an unrelated fixed height. A deliberately cropped card needs a consistently reserved crop area instead.
Suppose a replacement image is much smaller but the paragraph below still jumps when it appears. The download change addressed transfer size, while the layout still lacks reserved space. Fix the dimensions or crop container and retest the movement. Conversely, a stable image box can still contain a slow-loading image; reserving space does not reduce the download.
Verify one change at a time
- Record the page URL, test device and current problem element.
- Change one image or delivery setting.
- Confirm the live page requests the new file rather than a cached original.
- Repeat the same test and visually inspect the opening screen.
- Keep the change only if image quality and the relevant measurement support it.
A file export is only one part of page performance. For a structured follow-up, use the PageSpeed image workflow.
Prepare a better-sized image
Identify the problem first: reduce unnecessary image data, fix late loading or reserve space to prevent movement. Change one thing, retest the same page and keep the original. Resizing helps when excess dimensions are the problem.
Resize an imageChoose practical image dimensions →