Masonry on load height error

255 views Asked by At

I have this problem every time I load this site for the first time the masonry triggers a height problem.

<div class="js-masonry" id="masonry" data-masonry-options='{"columnWidth": 390, "itemSelector": ".item","gutter":0 }'> 

this is my jquery for masonry :

<script>
    $(window).load(function()
    {
        $(document).ready(function() {
            $('#masonry').masonry({
                columnWidth: 390,
                itemSelector: '.item',
                gutter: 0
            })
        });
        $('#masonry').masonry({
            columnWidth: 390,
            itemSelector: '.item',
            gutter: 0
        });
    });

</script>

this is my site you can try opening it http://enjoykerja.com

0

There are 0 answers