1
I’m making a website responsive and would like to upload different images in the background depending on the device. I will respect the use of data from mobile users and do not want to force the upload of an image 1920x500 for example.
If I use media queries in CSS (as represented below) what exactly happens?
A) Both images are loaded but only one is shown;
B) Only the image that is in the user screen condition is loaded;
C) [other answer?]
@media screen and (min-width: 768px) {
#divFundo {
background-image: url("../images/imagem_grande.png");
}
}
@media screen and (max-width: 768px) {
#divFundo {
background-image: url("../images/imagem_pequena.png");
}
}