mirror of
https://github.com/GuerillaStudio/now-playing
synced 2024-11-26 15:21:40 +00:00
preload stylesheet
This commit is contained in:
parent
d0b6653ce2
commit
0c051d4d82
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@
|
||||||
{{ $sass := resources.Get "/scss/style.scss" }}
|
{{ $sass := resources.Get "/scss/style.scss" }}
|
||||||
{{ $style := $sass | resources.ToCSS | minify | fingerprint }}
|
{{ $style := $sass | resources.ToCSS | minify | fingerprint }}
|
||||||
{{ $secureStyle := $style | resources.Fingerprint "sha512" }}
|
{{ $secureStyle := $style | resources.Fingerprint "sha512" }}
|
||||||
|
<link rel="preload" href="{{ $secureStyle.Permalink }}" as="style" />
|
||||||
<link rel="stylesheet" href="{{ $secureStyle.Permalink }}" integrity="{{ $secureStyle.Data.Integrity }}">
|
<link rel="stylesheet" href="{{ $secureStyle.Permalink }}" integrity="{{ $secureStyle.Data.Integrity }}">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Reference in a new issue