Loading...
<img
src="/photo.jpg"
alt="Product photo"
><img
src="/photo.jpg"
width="800"
height="600"
alt="Product photo"
>With width and height, the browser reserves space from the aspect ratio before the image loads, so content below does not jump.
width and height attributes or an aspect-ratio.transform instead of changing top, left, width or height.font-display and fallback metrics so text does not jump when they load.0.1 or less at the 75th percentile of visits is good, and over 0.25 is poor.
No. Shifts within 500 ms of a tap, click or key press are excluded, because the user expects them.
Shifts are grouped into session windows of up to 5 seconds, and CLS is the score of the worst window, based on how much content moved and how far.