Universal Selector

Codecademy needs to stop teaching the universal selector. It’s just bad practice.

What this does is looks at every single element on the page (that’s every single one) and then looks to see if any of those live in the #content parent. This is a very un-performant selector as the key selector is a very expensive one.


1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.