I’m using mustache.js, masonry and I was trying to use imagesLoaded to avoid overlapping images.
My code was returning me .imagesLoaded is not a function…
Some people on the interwebs said that disabling Rocket Loader in CloudFlare… didn’t work for me.
After more than 2 hours I got the solution – without using imagesLoaded -.
// Masonry Trigger
var $container = $('#masonry-wrap');
Solution was taken from jQuery masonry with WordPress and imagesLoaded and given by McNab!
I had to use imagesLoaded to solve my problem