aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-22 02:57:39 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-12-22 02:57:39 +0300
commit398867b5661a0a5b025274c451679d5582b0a947 (patch)
tree66729ba0e9d1d3d55a1fa13bf8643147e2fc1f77 /layouts/partials
parent61b6baa66a631fd60558112acd455b0d7d7169e7 (diff)
Auto-commit 2024-12-22
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