Skip to content

Commit

Permalink
remove defer from js serving
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushikgopal committed Aug 15, 2022
1 parent 6635b47 commit 6cb2e71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/partials/script.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
{{ $js := slice $jq $sn $gt | resources.Concat "js/bundle.js" }}

{{ if .Site.IsServer }}
<script defer src="{{ $js.RelPermalink }}" type="module"></script>
<script src="{{ $js.RelPermalink }}" type="module"></script>
{{ else }}
{{ $js = $js | minify | fingerprint }}
<script defer src="{{ $js.RelPermalink }}" type="module"></script>
<script src="{{ $js.RelPermalink }}" type="module"></script>
{{ end }}

0 comments on commit 6cb2e71

Please sign in to comment.