CS Fundamentals Trainer · JavaScript · Performance & Memory

Which of these typically cause Cumulative Layout Shift (CLS)?

  1. Animating an element with `transform: translateX(...)`
  2. Images inserted without `width`/`height` or `aspect-ratio`
  3. A 300 ms long task that delays a click handler
  4. An ad slot injected above the content without reserved space
  5. A web font swap that changes the size of text already on screen

Difficulty: easy

Answer this question

Related questions