|
@@ -34,12 +34,12 @@ class View {
|
34
|
34
|
$Styles = array_merge(['tooltipster'], explode(',', $CSSIncludes));
|
35
|
35
|
foreach ($Scripts as $Script) {
|
36
|
36
|
if (trim($Script) == '') { continue; }
|
37
|
|
- header('Link: <'.STATIC_SERVER.'functions/'.$Script.'.js?v='.filemtime(SERVER_ROOT.STATIC_SERVER.'functions/'.$Script.'.js').'>; rel=preload;', false);
|
|
37
|
+ header('Link: <'.STATIC_SERVER.'functions/'.$Script.'.js?v='.filemtime(SERVER_ROOT.STATIC_SERVER.'functions/'.$Script.'.js').'>; rel=preload; as=script;', false);
|
38
|
38
|
}
|
39
|
|
- header('Link: <'.STATIC_SERVER.'styles/global.css?v='.filemtime(SERVER_ROOT.STATIC_SERVER.'styles/global.css').'>; rel=preload;', false);
|
|
39
|
+ header('Link: <'.STATIC_SERVER.'styles/global.css?v='.filemtime(SERVER_ROOT.STATIC_SERVER.'styles/global.css').'>; rel=preload; as=style', false);
|
40
|
40
|
foreach ($Styles as $Style) {
|
41
|
41
|
if (trim($Style) == '') { continue; }
|
42
|
|
- header('Link: <'.STATIC_SERVER.'styles/'.$Style.'/style.css?v='.filemtime(SERVER_ROOT.STATIC_SERVER.'styles/'.$Style.'/style.css').'>; rel=preload;', false);
|
|
42
|
+ header('Link: <'.STATIC_SERVER.'styles/'.$Style.'/style.css?v='.filemtime(SERVER_ROOT.STATIC_SERVER.'styles/'.$Style.'/style.css').'>; rel=preload; as=style;', false);
|
43
|
43
|
}
|
44
|
44
|
require(SERVER_ROOT.'/design/privateheader.php');
|
45
|
45
|
}
|