aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/head/js.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/head/js.html')
-rw-r--r--layouts/partials/head/js.html10
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