I am currently using Jquery Lazy Load and I was wondering if there is a way of making a callback when all the images from my container ended loading (when lazy load has made all his magic).
The reason for this is that I am using jScrollPane Plugin as well and I would like to call the jScrollPane reinitialize function.
Thanks’
Looking at the source, it seems that the lazy load plugin calls the
settings.loadfunction after loading an image passing the loaded image element and a couple of parameters:So you will probably need to just set something like this:
If you want to be sure that the image is loaded, you can attach a listener to the loaded image:
Edit
After trying the code, the most ‘clean’ method is to attach to the
.loadmethod of your images:http://jsfiddle.net/eRyww/72/