How do I install Masonry Gallery + ImagesLoaded correctly?

  • 0
    Hello! I can not install "Masonry Gallery" + ImagesLoaded on the first loading of the site if I switch via Google Chrome to mob. version of the site, the pictures run over each other. When you reboot, everything falls into place. Please help me how to avoid this?

    link to site

    JavaScript Anonymous, Nov 6, 2019

  • 1 Answers
  • 0
    By sight, the initialization seems to be normal, for comparison, the code from another site is almost the same.

    $('.isotope-grid').imagesLoaded(function() { 
    var $grid = $('.isotope-grid');

    itemSelector: '.grid-item',
    layoutMode: 'fitRows',
    percentPosition: true


    link to the page from which the code

Your Answer
To place the code, please use CodePen or similar tool. Thanks you!