diff --git a/src/Templates/DeferredRequirements.php b/src/Templates/DeferredRequirements.php index cd1a8d5..16ed3e9 100755 --- a/src/Templates/DeferredRequirements.php +++ b/src/Templates/DeferredRequirements.php @@ -201,10 +201,10 @@ class DeferredRequirements implements TemplateGlobalProvider private static function getPreloadLine(string $url, string | null $as = null, string | null $type = null) { - $crossorigin = strpos('//', $url) ? ' crossorigin ' : ''; - $type = $type ?: ' type="'.$type.'" '; + $crossorigin = '';// strpos('//', $url) ? ' crossorigin="anonymous" ' : ''; + $type = $type ? ' type="'.$type.'" ' : ''; - return ''; + return ''; } public static function Preloads(): string @@ -241,6 +241,9 @@ class DeferredRequirements implements TemplateGlobalProvider } unset($fonts, $font); + $preloadPath = Controller::curr()->Link().'?ajax=1'; + $html .= ''.""; + return $html; }