I have several images that are preloaded like:
var Image1 = new Image();
var Image2 = new Image();
var Image3 = new Image();
Image1.onload = function ...();
Image2.onload = function ...();
Image3.onload = function ...();
Image1.src = url;
Image2.src = url;
Image3.src = url;
Which is all fine and dandy and what not. But I would like to try and set up a progress bar for them while their loading and havent been able to get it to work. Any help would be appreciated.
I tried doing a progress bar using the onload functions, but it was being weird with instantly running the function before it was actually loaded.