I have a landing page, which is a few sections with images as a background. Each section takes up screen size. In one section, images change every 5 seconds.
My site loads and works great on the desktop (as far as I can tell). However, on mobile devices, when I scroll up and down, it continues to reload.
For example: I look at section 2, which has been downloaded. I scroll down to section 3 and still load. As soon as it boots, I will go to section 2, section 2 will restart, even if it is there. No matter how much I look up and down, this happens.
I am using bootstrap 3, jQuery (not jQuery mobile) and HTML5
* Note. Section 1 contains images that continue to be replaced and uploaded. I download these images in the background before replacing the old image with:
var imgPreload = new Image();
$(imgPreload).attr('src', '/new-image.jpg').load(function() {
$(this).remove();
$('#section1').css('background-image', 'url(/new-image.jpg)');
}
source
share