Skip to content

Commit

Permalink
🐛 force loading order of libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
henrylee97 committed Mar 7, 2024
1 parent 727776c commit 7be0fc3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/head/conditional-assets.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<link rel="stylesheet" href="{{ $block.RelPermalink }}" />
{{ end }}
{{ if .HasShortcode "gallery" }}
<script src="https://cdn.jsdelivr.net/npm/masonry-layout@4.2.2/dist/masonry.pkgd.min.js" integrity="sha384-GNFwBvfVxBkLMJpYMOABq3c+d3KnQxudP/mGPkzpZSTYykLBNsZEnG2D9G/X/+7D" crossorigin="anonymous" async></script>
<script src="https://cdn.jsdelivr.net/npm/imagesloaded@5.0.0/imagesloaded.pkgd.min.js" integrity="sha256-htrLFfZJ6v5udOG+3kNLINIKh2gvoKqwEhHYfTTMICc=" crossorigin="anonymous" async></script>
<script src="https://cdn.jsdelivr.net/npm/masonry-layout@4.2.2/dist/masonry.pkgd.min.js" integrity="sha384-GNFwBvfVxBkLMJpYMOABq3c+d3KnQxudP/mGPkzpZSTYykLBNsZEnG2D9G/X/+7D" crossorigin="anonymous" defer></script>
<script src="https://cdn.jsdelivr.net/npm/imagesloaded@5.0.0/imagesloaded.pkgd.min.js" integrity="sha256-htrLFfZJ6v5udOG+3kNLINIKh2gvoKqwEhHYfTTMICc=" crossorigin="anonymous" defer></script>
{{ $block := resources.Get "js/gallery.js" }}
<script src="{{ $block.RelPermalink }}" defer></script>
{{ end }}

0 comments on commit 7be0fc3

Please sign in to comment.