desandro / masonry

:love_hotel: Cascading grid layout plugin
https://masonry.desandro.com
16.27k stars 2.11k forks source link

Layout not working on page loading. #1162

Open KhalilSelyan opened 2 years ago

KhalilSelyan commented 2 years ago

This is my issue my layout does not get activated when the page loads. on my development side if i comment / uncomment ( msnry.layout() ) the layout gets fixed but then i wouldn't be able to change anything in the css and as soon as i reload i have the same problem again, couldn't figure out what to fix. Test case: https://codepen.io/khalilselyan/pen/GRvPXmz

BenRacicot commented 2 years ago

Hey @KhalilSelyan I came here because I thought we have the same issue but I can see that your pen doesnt have imagesLoaded in it's resources. It's missing it.