Text jumps when an image loads
- Cause to inspect
- The browser did not know the image's aspect ratio during initial layout.
- Fix
- Add accurate
widthandheightattributes or reserve the correct aspect ratio. See images without dimensions.
Track unexpected movement in the field and in DevTools, identify the element that shifted, and reserve space for images, embeds, ads, and fonts.
Cumulative Layout Shift (CLS) measures unexpected movement of visible content. Good CLS is 0.1 or less at the 75th percentile; above 0.25 is poor. Capture a layout-shift trace, identify the shifting element and its cause, then reserve the correct space or change when content loads. Do not treat every animation or user-initiated shift as a defect.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
Use Chrome DevTools Performance and capture a page load or interaction where the shift occurs. The Layout Shifts track shows shift clusters; click a shift to see an animation of it and the elements that moved. The live metrics view lets you interact with the page and watch the CLS score.
Find the elements that moved and the element that entered or changed size immediately before them. Lighthouse lists the elements that shifted, which are often the ones impacted rather than the cause: a new element inserted above them is the root cause.
Layout shifts within 500 milliseconds of user input are excluded from CLS. Shifts while scrolling (for example lazy-loaded content) or when the pointer hovers over content still count, even within that window. If content needs a network fetch, reserve the expected space within the 500 ms window.
width and height attributes or reserve the correct aspect ratio. See images without dimensions.font-display: optional to avoid a re-layout, set a matching fallback family, and reduce size differences with size-adjust, ascent-override, descent-override and line-gap-override. Preloading critical fonts helps them meet first paint; see web fonts delaying text.min-height or aspect-ratio, or overlay the content outside the document flow. For ads, web.dev suggests a container sized to the most likely ad size, or the smallest size with some shift accepted for larger ones. Avoid collapsing the reserved space when no ad is returned.Do not hide a useful element or disable a required consent or accessibility feature just to improve the score. The target is a stable page that still provides the content and controls visitors need.
font-display: optional guarantees no font-swap layout shifts but the web font won't be used if it arrives late. swap shows text quickly, but the shift is jarring if the font arrives late.transform (translate, scale, rotate, skew) instead of properties such as top and left; web.dev says changing top and left causes layout shifts even when the element is on its own layer.Stable layouts make links, buttons, and reading easier for people, and back/forward navigations can avoid load-time shifts when the page is eligible for the bfcache. For how Core Web Vitals relate to Google's ranking systems, see Poor LCP.
Capture a new trace with the same viewport, route state, and actions. Confirm the original shift is gone and no new shift appears later in the visit.
Check narrow and wide screens, long headlines, translated text, consent states, and a slow font or image load. A layout stable for one content length can still jump for another.
Monitor mobile and desktop in Search Console as new visits are collected. Lighthouse typically measures only the initial page load, while field CLS covers the full life of the page, so the two can differ.
3 questions people ask next, answered from the sources on this page.
Good is 0.1 or less at the 75th percentile. More than 0.25 is poor; the range between those thresholds needs improvement.
No. CLS focuses on unexpected layout shifts. Layout shifts within 500 milliseconds of user input are excluded from the metric, but shifts during scrolling or hovering still count.
Yes. Browsers calculate a default aspect ratio from the width and height attributes before the image loads; CSS such as height: auto; width: 100% can still scale the image to its container.
Run the free audit, then approve the fixes. Every change can be undone.