Hacker News new | past | comments | ask | show | jobs | submit login

Better caching, smaller HTML size and the ability to use inline styles if you do need to override something



Are `class` attributes cached more efficiently than `style` attributes for some reason?


I assume he/she means that CSS is cached as an http resource and can be reused in different pages, whereas style attributes are only cached as part of the page; ie using them adds page weight.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

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

Search: