mirror of
https://github.com/a2nt/cms-niceties.git
synced 2024-10-22 11:05:46 +02:00
IMPR: Preload logo
This commit is contained in:
parent
a4d463e99d
commit
f11151338e
@ -241,6 +241,10 @@ class DeferredRequirements implements TemplateGlobalProvider
|
||||
}
|
||||
unset($fonts, $font);
|
||||
|
||||
$html .= '<link rel="preload" as="image" href="'
|
||||
.WebpackTemplateProvider::resourcesURL('logo.png')
|
||||
.'" />';
|
||||
|
||||
/*$preloadPath = Controller::curr()->Link().'?ajax=1';
|
||||
$html .= '<link rel="preload" as="fetch" href="'.$preloadPath.'" />'."<script>fetch('".$preloadPath."', {method:'GET',credentials:'include',mode:'no-cors'}).then((r)=>{return r.json()}).then((d)=>{window.preloadedData = d})</script>";*/
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user