Browser & Web Performance · Middle · Question 21 of 75

The LCP image is set as a CSS background-image. Why does that often hurt LCP?

Explanation

Use an <img> in the HTML or add <link rel="preload" as="image"> so the browser discovers it early.

Further reading

Problem with a question

Browser & Web Performance · Middle · question 21

Test yourself

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

Take this quiz