Fix: relayout masonry after page load

This commit is contained in:
Aroy-Art 2024-08-27 22:13:05 +02:00
parent 6de81928c4
commit cc09656497
Signed by: Aroy
GPG key ID: DB9689E9391DD156

View file

@ -27,6 +27,11 @@ grids.forEach(function(grid) {
// layout Masonry after each image loads // layout Masonry after each image loads
msnry.layout(); msnry.layout();
}); });
// layout Masonry after page load
$(window).on('load', function() {
msnry.layout();
});
} }
}); });