Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There are performance considerations as well. Using selectors is more performant than raw tags.

https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Writi...

Using nesting and tags is less performant than classes. So using more classes is better than less.



That article is old

> Note: This document was originally written in 2000. Much has changed when it comes to writing CSS that is fast.


Oh...woops. Do you know of any more recent articles? I've been playing by this since I bombed an interview where they asked about CSS performance a few months ago and I had nothing smart to say.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: