Universal Selector


#1

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.

http://csswizardry.com/2011/09/writing-efficient-css-selectors/


#2

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