Browser & Web Performance · Junior · Question 19 of 75
Which change is most likely to reduce CLS caused by images?
- 1Load images with
asyncscripts - 2Convert images from PNG to JPEG
- ✓Correct answer: Set
widthandheightattributes (oraspect-ratio) on images
Explanation
With known dimensions the browser reserves space before the image arrives, so nothing jumps when it loads.