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 | |
parent | 61b6baa66a631fd60558112acd455b0d7d7169e7 (diff) |
Auto-commit 2024-12-22
-rw-r--r-- | layouts/partials/comments.html | 2 | ||||
-rw-r--r-- | layouts/partials/head/js.html | 10 |
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 |