Created
September 27, 2022 08:08
-
-
Save robertbiswas/df96b074628abb965e47496c1d808a7d to your computer and use it in GitHub Desktop.
Masonry Grid with Lazyload issue solved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function () { | |
var $grid = $('.msnry-grid').masonry(); | |
$grid.find('[loading="lazy"]').on('load', function() { | |
$('.msnry-grid').masonry('layout'); | |
console.log("image loaded."); | |
}) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment