diff --git a/app/Http/View/Composers/HeadComposer.php b/app/Http/View/Composers/HeadComposer.php index 68cdbaf4..2d7c4cae 100644 --- a/app/Http/View/Composers/HeadComposer.php +++ b/app/Http/View/Composers/HeadComposer.php @@ -83,12 +83,10 @@ class HeadComposer { $links = []; $links[] = [ - 'rel' => 'preload', - 'as' => 'style', + 'rel' => 'stylesheet', 'href' => 'https://cdn.jsdelivr.net/npm/@blessing-skin/admin-lte@3.0.4/dist/admin-lte.min.css', 'integrity' => 'sha256-nr8InsK/i0Skb3n3yHCVwEnsmblkae4Rs9aFJ4/JTWE=', 'crossorigin' => 'anonymous', - 'onload' => "this.rel = 'stylesheet'", ]; $links[] = [ 'rel' => 'preload', @@ -103,20 +101,16 @@ class HeadComposer 'crossorigin' => 'anonymous', ]; $links[] = [ - 'rel' => 'preload', - 'as' => 'style', + 'rel' => 'stylesheet', 'href' => 'https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.13.0/css/all.min.css', 'integrity' => 'sha256-h20CPZ0QyXlBuAw7A+KluUYx/3pK+c7lYEpqLTlxjYQ=', 'crossorigin' => 'anonymous', - 'onload' => "this.rel = 'stylesheet'", ]; if (!$this->request->is('/')) { $links[] = [ - 'rel' => 'preload', - 'as' => 'style', + 'rel' => 'stylesheet', 'href' => $this->webpack->url('style.css'), 'crossorigin' => 'anonymous', - 'onload' => "this.rel = 'stylesheet'", ]; } $view->with('links', $links); diff --git a/resources/views/home.twig b/resources/views/home.twig index 99a988de..65c264f0 100644 --- a/resources/views/home.twig +++ b/resources/views/home.twig @@ -2,7 +2,7 @@ {{ include('shared.head') }} - + {{ site_name }}