Hello!
I know that someone posted a question about lazysizes+masonry (https://github.com/aFarkas/lazysizes/issues/83) but I'm using matchHeight (https://github.com/liabru/jquery-match-height) on my project.
How do i fire up $.fn.matchHeight._update() after the image has been lazyloaded?
Hello!
I used the code snippet you gave and removed function for masonry.
$('.grid').each(function(){
var $masonry = $(this);
var update = function(){
$.fn.matchHeight._update();
};
$('.grid-item', $masonry).matchHeight();
this.addEventListener('load', update, true);
});
It is now working! Thanks!
Most helpful comment
Hello!
I used the code snippet you gave and removed function for masonry.
It is now working! Thanks!