Re:CSS Tricks: How to Speed Up CSS Rendering
by technel on Saturday May 05, 2012 @12:39PM
(#3932497)
I find it really interesting how expensive it is to have <img> tags without specifying a width/height. I always knew this was best practice, then stopped doing it once I started experimenting with "responsive web design."
[ Parent
| on HN ]
Re:CSS Tricks: How to Speed Up CSS Rendering
by anatoli on Saturday May 05, 2012 @01:22PM
(#3932620)
You probably know this but you can just specify something like "height: auto; max-width: 100%;" within a media query if you have an image that's supposed to at most fill the full column width. That would then override the inline height and width attributes.