Web Technology Basics
Among Core Web Vitals, the metrics of a web page's user experience, which of the following does CLS (Cumulative Layout Shift) represent?
- AThe time until the largest image or block of text on the screen is displayed while the page loads
- BThe delay from a user's click or key press until its result is drawn on the screen
- CThe amount by which elements unexpectedly shift position during display, caused for example by images or ads that load later
Show answer and explanation
Answer: C. The amount by which elements unexpectedly shift position during display, caused for example by images or ads that load later
Core Web Vitals consist of three metrics: LCP (Largest Contentful Paint) for loading speed, INP (Interaction to Next Paint) for responsiveness to interaction, and CLS for visual stability (INP replaced FID in March 2024). CLS quantifies unexpected shifts in position, such as text being pushed down by images or ads that appear later. Specifying width and height for images and videos so that their space is reserved in advance makes CLS smaller.
- A. This is LCP, the metric for loading speed.
- B. This is INP, the metric for responsiveness to interaction.
- C. Correct. CLS represents visual stability, that is, unexpected layout shifts.