diff options
Diffstat (limited to 'themes/flog/layouts/partials/listing.html')
| -rw-r--r-- | themes/flog/layouts/partials/listing.html | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/themes/flog/layouts/partials/listing.html b/themes/flog/layouts/partials/listing.html index a5556b6..c652294 100644 --- a/themes/flog/layouts/partials/listing.html +++ b/themes/flog/layouts/partials/listing.html @@ -59,9 +59,7 @@ function loadMasonry() { if (typeof imageLoadAttached === 'undefined') { imageLoadAttached = true; - [].forEach.call(document.images, function(i) { - i.addEventListener('load', loadMasonry, false); - }); + imagesLoaded(document.body).on('always', loadMasonry) } if (typeof Masonry === 'undefined') { |
