News for hackers. Stuff that matters.
Re:Show HN: I decided to document and share my high-level CS... by elefont2 on Monday March 12, 2012 @12:31PM (#3694169)
His advice for using 'short selectors' for performance is just plain incorrect.

http://code.google.com/speed/page-speed/docs/rendering.html is a great page describing CSS performance.

Selectors like '.nav a' would not be allowed at all as a part of my team's CSS best practices, as it is a descendant selector that uses a tag as the key. (On the other hand, most sites, expecially non-dynamic sites, don't need to optimize CSS at all, as there are usually other things which are the bottleneck)

There are no comments on this comment yet.