I'm using a simple load to fill a div with content using a fadein as the callback. I then have a secondary fadein for the images to reduce their pop in.
I'd like to remove this pop in entirely and have the page fadein only once all images have been loaded, so it all loads as one piece. How do i achieve this?
$("#content").load("pages/test.htm", function () {
$("#page").fadeTo(250, 1, "swing");
});
then on the loaded page
$('img').load(function (e) {
$('img').fadeIn();
});
how can I achieve this?