Preload in the background?
Hi,
I am adding a few images to my page like this:
- $('body').append('<div id="galleryContainer" class="galleryContainer"></div>');
var galleryContainer = $('#galleryContainer');
- var imageCount = imageArray.length; //imageArray is a array which contains the URLs to the images
- for(i = 0; i < imageCount ;i++)
- {
- $("<img/>").attr("src", imageArray[i]).appendTo(galleryContainer);
- }
this work, but I want to do this in the background. That means, I want to show my page and then, if all images are loaded, I want to show 'galleryContainer'.
Right now, the whole page is loaded and then shown....
Maybe someone has a little tip for me?!
Thanks, Alex