fix: preload stylesheets

This commit is contained in:
Dillon 2022-05-14 02:37:36 +08:00
parent 56b4252ec7
commit aa834e89af
No known key found for this signature in database
GPG key ID: 0EF4AE57FB98F108

View file

@ -39,7 +39,7 @@
{{- end -}} {{- end -}}
{{- if .Preload -}} {{- if .Preload -}}
<link rel="preload" {{ $attrs | safeHTMLAttr }} as="style" onload="this.onload=null;this.rel='stylesheet'"> <link rel="preload" {{ $attrs | safeHTMLAttr }} as="style" onload="this.onload=null;this.rel='stylesheet'">
<noscript></noscript><link rel="stylesheet" {{ $attrs | safeHTMLAttr }}></noscript> <noscript><link rel="stylesheet" {{ $attrs | safeHTMLAttr }}></noscript>
{{- else -}} {{- else -}}
<link rel="stylesheet" {{ $attrs | safeHTMLAttr }}> <link rel="stylesheet" {{ $attrs | safeHTMLAttr }}>
{{- end -}} {{- end -}}