I want to change a image when the display is smaller than 400px
(for this purpose i cant use the image as background). I thought displaying 1 with display:block
and to hide the other with display: none
.
My question is if i do it this way, will the browser load both images and hide one of them or will it only load one of them? (display:block
).
If the browser load both images i need to find a way to change the src of the image