Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ranyefet
· 10y ago · 0 comments
Better caching, smaller HTML size and the ability to use inline styles if you do need to override something
Comments
[–]
ryannevius
10y ago
Are `class` attributes cached more efficiently than `style` attributes for some reason?
[–]
Touche
10y ago
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.