Skip to content

Commit

Permalink
fix(masonry.js) : fixed masonry loading issue which caused grid error…
Browse files Browse the repository at this point in the history
… in main>items
  • Loading branch information
raiyanu committed Jul 23, 2024
1 parent aebfbd4 commit 473a024
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,10 @@ <h2>
<script type="module" src="./js/content-loader.js" type="module"></script>
<script src="./js/qrcode.min.js"></script>
<script src="./js/qrcode.min-init.js"></script>
<!-- for grid -->
<script src="./js/masonry.js"></script>
<script src="./js/masonry-init.js"></script>
<!-- for navigation panel scroll behaviour -->
<script src="./js/main.js"></script>
<!-- for grid -->
<script src="./js/masonry.js" defer></script>
<script src="./js/masonry-init.js" defer></script>
</body>
</html>
1 change: 1 addition & 0 deletions js/content-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ document.addEventListener("DOMContentLoaded", async function () {
const productSets = await fetchProduct();
console.log(productSets.content, productSets.categorey);
appendMenuData(productSets.content, productSets.categorey);
await masonry_init();
})();
});

Expand Down

0 comments on commit 473a024

Please sign in to comment.