Packery and imagesLoaded plugin not working?
问题 I'm using Packery on a website and have downloaded imagesLoaded, but still my images overlap on page load. The website can be seen here and my code is as below: $(document).ready(function() { var $container = $container.packery({ itemSelector: "packery-item" }); $container.imagesLoaded( function() { container.packery(); }); }); Any help would be greatly appreciated. EDIT: The html code looks like this: <div class="packery js-packery"> <div class="packery-item item"><img src="imgs/cdg5.jpg"><