Will CSS background image load only on specific devices with media queries?

Hi there,

If I specify a different background image for mobile and desktop, will the image for mobile only load when viewing on mobile, or will it load all images? I’m trying to reduce load time so wondered if the CSS works this way?


In general, background images are loaded as needed. If the background image is called in a media query, only the image within the active media query is loaded.

1 Like

Great, many thanks!

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.