Track via jquery when the background image actually loads on browser

var imageObj = new Image();
$(imageObj).attr(“src”,src).load(function(){alert(‘load’); //do whatever});

here, src is the path of the image……..

  1. Leave a comment

Leave a comment