diff options
author | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-22 02:57:39 +0300 |
---|---|---|
committer | Alexander Neonxp Kiryukhin <i@neonxp.ru> | 2024-12-22 02:57:39 +0300 |
commit | 398867b5661a0a5b025274c451679d5582b0a947 (patch) | |
tree | 66729ba0e9d1d3d55a1fa13bf8643147e2fc1f77 /layouts/partials/head | |
parent | 61b6baa66a631fd60558112acd455b0d7d7169e7 (diff) |
Auto-commit 2024-12-22
Diffstat (limited to 'layouts/partials/head')
-rw-r--r-- | layouts/partials/head/js.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/layouts/partials/head/js.html b/layouts/partials/head/js.html index bb53b7b..0c234aa 100644 --- a/layouts/partials/head/js.html +++ b/layouts/partials/head/js.html @@ -1,15 +1,15 @@ {{- with resources.Get "js/main.js" }} {{- if eq hugo.Environment "development" }} {{- with . | js.Build }} - <script src="{{ .RelPermalink }}"></script> + <script src="{{ .RelPermalink }}" defer="true"></script> {{- end }} {{- else }} {{- $opts := dict "minify" true }} {{- with . | js.Build $opts | fingerprint }} - <script src="{{ .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous"></script> + <script src="{{ .RelPermalink }}" defer="true" integrity="{{- .Data.Integrity }}" crossorigin="anonymous"></script> {{- end }} {{- end }} {{- end }} -<script src="/js/bootstrap.bundle.min.js"></script> -<script src="/js/fuse.min.js"></script> -<script src="/js/search.js"></script>
\ No newline at end of file +<script src="/js/bootstrap.bundle.min.js" defer="true"></script> +<script src="/js/fuse.min.js" defer="true"></script> +<script src="/js/search.js" defer="true"></script>
\ No newline at end of file |