This has to have been asked many time but a search didn't return anything with "synchronous" in the name.
I need to load images before they are displayed. I have made this work in the past but then using what appears to be the same method again doesn't work.
I have something like this.
var preImage=new Image(0,0);
Complete is always returned before the load is complete. So, is there an understandable way to make the doSomething function wait until the load of the image is complete?
I have searched for answers that I get the most convoluted solutions and none of them have decent explanations or at least not for me.
Any one can explain just how to make this work?
Thanks for any help you can provide.