I have been trying to piece together masonry and moo tools lazyload however they both dont seem to go very well together although it possibly could just be because I am slig
Try to re-use "Masonry" in the "callback_loaded" of the LazyLoad
var ll = new LazyLoad({
elements_selector: "img[data-src]",
callback_loaded() {
masonry = new Masonry(grid, {
itemSelector: '.img-selector',
});
}
});
Further added code is below
callback_loaded() {
masonry = new Masonry(grid, {
itemSelector: '.img-selector',
});
}