Skip to content

Commit

Permalink
defer loading of lunr search scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jbowdre committed Jan 4, 2025
1 parent 611ff3c commit 702eeb3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/search-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
}
</script>
{{ $jsLunr := resources.Get "js/lunr.js" | minify }}
<script src="{{ $jsLunr.RelPermalink }}" async></script>
<script src="{{ $jsLunr.RelPermalink }}" defer></script>
{{ $jsSearch := resources.Get "js/search.js" | minify }}
<script src="{{ $jsSearch.RelPermalink }}" async></script>
<script src="{{ $jsSearch.RelPermalink }}" defer></script>

0 comments on commit 702eeb3

Please sign in to comment.