Skip to content

Commit e7c2f03

Browse files
Copilotimfing
andauthored
fix: preload custom.css in production for consistency
Co-authored-by: imfing <5097752+imfing@users.noreply.github.com>
1 parent 4679161 commit e7c2f03

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

layouts/_partials/head.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
<link href="{{ $styles.RelPermalink }}" rel="stylesheet" integrity="{{ $styles.Data.Integrity }}" />
4141
{{- with $customCss }}
4242
{{- $custom := . | fingerprint }}
43+
<link rel="preload" href="{{ $custom.RelPermalink }}" as="style" integrity="{{ $custom.Data.Integrity }}" />
4344
<link href="{{ $custom.RelPermalink }}" rel="stylesheet" integrity="{{ $custom.Data.Integrity }}" />
4445
{{- end }}
4546

0 commit comments

Comments
 (0)