Comment

Comment by elefont2

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)

parent elefont2 14 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton