Hacker News new | ask | show | jobs
by ranyefet 3682 days ago
Better caching, smaller HTML size and the ability to use inline styles if you do need to override something
1 comments

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.