CS Fundamentals Trainer · JavaScript · Performance & Memory
Which of these typically cause Cumulative Layout Shift (CLS)?
- Animating an element with `transform: translateX(...)`
- Images inserted without `width`/`height` or `aspect-ratio`
- A 300 ms long task that delays a click handler
- An ad slot injected above the content without reserved space
- A web font swap that changes the size of text already on screen
Difficulty: easy