I have e-shopping website by Prestashop CMS. Each product page has many images. When user visit a page before all images load completely, some part of page fall into scroll box. I guess this problem because browsers first load text and then load images. Now I set JQuery loading to solve this problem but still problem remain. I put my loading codes and sample product page in following:
$(window).load(function() {
$(".loader").fadeOut("10000");
});
.loader {
position: fixed;
left: 0px;
top: 0px;
width: 100%;
height: 100%;
z-index: 9999;
background: url('../img/loading2.gif') 50% 50% no-repeat #fff;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<div class="loader"></div>
and this is sample product page: ZoodTools
I want update my codes so that make sure all images are loaded completely then fade out loading and show page to user.