Browser & Web Performance · Junior · Question 29 of 75
What does srcset with sizes on an <img> let the browser do?
- ✓Correct answer: Pick the most appropriate image file for the screen size and pixel density
- 2Load all listed images and show the best one
- 3Crop the image automatically
Explanation
Phones then download a small file instead of the desktop-sized image, which saves bytes and speeds up LCP.