How can I detect when an image has finished loading be it from the server or the browser cache?
I want to load various images in the same
tag and d
Well, this is quite an old thread I came across yesterday. I'm using backbone.js and require.js and resizing my layout always caused problems with views that contain images.
So, I needed a way to know when the last image has finished loading to resize the layout. All, mentioned solutions above didn't work in my case. After some hours of more investigation I found the ultimate solution that is working:
http://desandro.github.com/imagesloaded/
Hope that helps others as well.