Browser & Web Performance · Senior · Question 11 of 75

Why can a single class change on <body> be expensive in a large app?

Explanation

Style recalculation cost depends on how many elements are affected and how complex the selectors matching them are.

Further reading

Problem with a question

Browser & Web Performance · Senior · question 11

Test yourself

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

Take this quiz