Posted on 4th February 2008 — Daniel Mee requested a tutorial and writes:
I have a large image (500k). I have a loading gif (little rotating circle thingy from ajaxload.info). I want the animated gif to be swapped with the large image once it’s loaded. The event may be on page load or may be some button onClick…
This is similar to how a LightBox would work, except Daniel wants complete control of the the load event.
This tutorial will show how to load images in the background, and once loaded handle the event and create your own response.