alexanderdickson/waitForImages — Issue #7: Image swap (wait for image load)
Author: sfkamath
Created: 2011-11-06 17:13:48+00:00
State: open

Hi

Am unsure if this should work. Trying to swap an image and would like to show a spinner till the image is loaded. Using the waitforImages script for this purpose but cannot seem to get it to work right.

Example jfiddle here - http://jsfiddle.net/sfkamath/3Gb6e/

When the swap button is clicked the images should change and a spinner should show for a bit till the images load. To showcase the problem, I've put a fairly large image as the second one which should take some time to load

Note : the cache has to be cleared when clicking the swap button after the first run

Thanks in advance
Suneet