Forum Moderators: not2easy
<div style="display: none">
<img src="example.jpg">
</div> p.collage {background: center no-repeat url("images/picname.jpg"); width: 701px; height: 888px;}
@media screen and (max-width: 720px)
{
p.collage {display: none; background-image: none;}
}The "background-image: none" is essential, because otherwise the image will load up even when the browser already knows it won't be displayed. I confirmed this by experiment: set a narrow browser window before opening the page, and see whether the image file is requested.
var img = document.createElement('img');
img.src = 'example.jpg';
img.onload = function () {
// blah blah blah
}