DEV Community

Discussion on: Using a CSS display none will still trigger an HTTP request for images

Collapse
 
alohci profile image
Nicholas Stimpson

Good to know, but don't let it screw up your accessibility. If you want the image at all, then at some point you're going turn display:none off. With a background image, the unsighted users never going to know that the new information has been presented. With an img element, the alt value will let them know.

Collapse
 
js_craft_hq profile image
Daniel - JS Craft

good point :) Thanks