Browser & Web Performance · Junior · Question 29 of 75

What does srcset with sizes on an <img> let the browser do?

Explanation

Phones then download a small file instead of the desktop-sized image, which saves bytes and speeds up LCP.

Further reading

Problem with a question

Browser & Web Performance · Junior · question 29

Test yourself

Take the Browser & Web Performance · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz