imagesLoaded doesn't fire

Anybody has the solution?

I am trying to run isotope with external images, so I need to wait until all images are in DOM (to have their sizes). But if there are too many images (say 50 on a page and 20 of them are out of viewport) then imagesLoaded never fires