css versioning: fix for prefetch links
This commit is contained in:
parent
631a382d01
commit
4d0f00c976
@ -176,7 +176,7 @@ function cssLink(string $name, string $theme, &$bname = null): string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function cssPrefetchLink(string $name): string {
|
function cssPrefetchLink(string $name): string {
|
||||||
$url = '/dist-css/'.$name.'.css?'.getStaticVersion('css/'.$name.'.css');
|
$url = '/dist-css/'.$name.'.css?v='.getStaticVersion('css/'.$name.'.css');
|
||||||
$integrity = getStaticIntegrityAttribute('css/'.$name.'.css');
|
$integrity = getStaticIntegrityAttribute('css/'.$name.'.css');
|
||||||
return <<<HTML
|
return <<<HTML
|
||||||
<link rel="prefetch" href="{$url}"{$integrity} />
|
<link rel="prefetch" href="{$url}"{$integrity} />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user