hugo-bearblog : defer on random image

This commit is contained in:
minoplhy 2024-03-14 13:02:17 +07:00
parent 94aa85194f
commit 840d5751df
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF

View File

@ -6,9 +6,9 @@
{{- if not site.Params.assets.disableFingerprinting }}
{{- $randomize_combined := $randomize_combined | fingerprint }}
<script async crossorigin="anonymous" src="{{ $randomize_combined.RelPermalink }}" integrity="{{ $randomize_combined.Data.Integrity }}"></script>
<script defer crossorigin="anonymous" src="{{ $randomize_combined.RelPermalink }}" integrity="{{ $randomize_combined.Data.Integrity }}"></script>
{{ else }}
<script async crossorigin="anonymous" src="{{ $randomize_combined.RelPermalink }}"></script>
<script defer crossorigin="anonymous" src="{{ $randomize_combined.RelPermalink }}"></script>
{{ end }}
{{ end }}