4 ms·
I believe this should be moved to the stylesheet. We already have ways to determine media/viewport/device/orientation etc so adding different imgs would be a no
by Kilimanjaro 14y ago
I believe this should be moved to the stylesheet. We already have ways to determine media/viewport/device/orientation etc so adding different imgs would be a no brainer.
Bonus point, less cluttered HTML.
- jacobr 14y agoThat would mean the browser couldn't start downloading any image before it had downloaded and parsed the stylesheet. Or that it would download all images and the entire point of saving bandwidth is lost.
- Kilimanjaro 14y agoDownloading all images is out of the question. You use the most commonly used image as default and when the stylesheet is done you download whatever img is needed. Or, you use the newly minted 'defer' (I just came up with that) attribute to let the browser know not to download anything until the stylesheet is parsed. <img src='myhugeretinapic.png' defer>