aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/comments.html2
-rw-r--r--layouts/partials/head/js.html10
2 files changed, 6 insertions, 6 deletions
diff --git a/layouts/partials/comments.html b/layouts/partials/comments.html
index f23437f..72f8828 100644
--- a/layouts/partials/comments.html
+++ b/layouts/partials/comments.html
@@ -1,7 +1,7 @@
{{- with .Site.Params.comments -}}
<h1 class="post-title fw-semibold">Комментарии</h1>
<div id="remark42"></div>
-<script>
+<script defer="true">
var remark_config = {
host: '{{ .host }}',
site_id: '{{ .site }}',
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