no such method 'reload' for masonry instance
javascript, jquery, jquery-masonry
Solution
In the newer versions of masonry you use "reloadItems" instead of "reload". I ran across a tip on this thread that pointed me in the right direction.
.imagesLoaded(function(){
$container.masonry('reloadItems');
$container.masonry('layout');
});
Problem
Good staff is as follows, when the page finishes loading, masonry failure and I do not know why, but I found a method that is masonry.reload. This method works sometimes, I wonder why. ``` var $container = $('.container'); $container.masonry({ itemSelector: '.item', columnWidth: 25 }).imagesLoaded(function(){ $container.masonry('reload'); }); ```