Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
The CSS selector length myth (onderhond.com)
3 points by onderhond on May 24, 2013 | hide | past | favorite | 1 comment



While we probably shouldn't worry about long CSS selectors due to performance issues, we should avoid them for other reasons.

For instance, because it's considered a best practice to avoid "Modifying Components Based On Who Their Parents Are". Please see this article: http://engineering.appfolio.com/2012/11/16/css-architecture/




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: