Need to assign the handlers prior to setting the SRC.
Sometimes it would do the SRC so fast (image is cached locally?) that it would complete before assigning event handlers.
That would probably be the case. To avoid caching, you can add a random parameter or the date/time to get a unique request.
Comment