Image Preloader MKIII

Multiple Arrays

Image Preloader MKII
Image Preloader MKIII v 2

The thumbnail display is only a visual reference for this example to show the images being preloaded.

Preloading options
showAll = 0 Preload in background showing no display
showAll = 1 Display preloading of first image set then hide display and run function
showAll = 2 Display preloading of all image sets and then run function

Image preloader MKIII is ideal if you have more than one array of images.
You can choose to have the progress bar show the preloading status of all the arrays or just the first array.

If you choose only the first array once these images have preloaded your function is run, the progress bar is then hidden while the rest of the images continue to preload.