From 286717d00f355d53d63282d9dea548bb36e314f9 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 26 Sep 2023 20:49:43 +0000 Subject: [PATCH] lighthouse improvements --- Application/Timerecording/Application.php | 2 +- .../Timerecording/Themes/Akebi/css/timerecording-small.css | 1 + .../Timerecording/Themes/Akebi/css/timerecording-small.scss | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Application/Timerecording/Application.php b/Application/Timerecording/Application.php index c9057c0..d952465 100755 --- a/Application/Timerecording/Application.php +++ b/Application/Timerecording/Application.php @@ -370,7 +370,7 @@ final class Application private function initResponseHead(Head $head, HttpRequest $request, HttpResponse $response) : void { /* Load assets */ - $head->addAsset(AssetType::CSS, 'Resources/fonts/fontawesome/css/font-awesome.min.css?v=1.0.0'); + $head->addAsset(AssetType::CSS, 'Resources/fonts/fontawesome/css/font-awesome.min.css'); $head->addAsset(AssetType::CSS, 'cssOMS/styles.css?v=1.0.0'); $head->addAsset(AssetType::CSS, '//fonts.googleapis.com/css?family=Roboto:100,300,300i,400,700,900'); diff --git a/Application/Timerecording/Themes/Akebi/css/timerecording-small.css b/Application/Timerecording/Themes/Akebi/css/timerecording-small.css index 7562f51..6b79610 100755 --- a/Application/Timerecording/Themes/Akebi/css/timerecording-small.css +++ b/Application/Timerecording/Themes/Akebi/css/timerecording-small.css @@ -46,6 +46,7 @@ max-width: 100%; overflow: hidden; font-family: var(--font-family); + font-display: swap; color: #000; } body { diff --git a/Application/Timerecording/Themes/Akebi/css/timerecording-small.scss b/Application/Timerecording/Themes/Akebi/css/timerecording-small.scss index 7252f9d..c5f2f69 100755 --- a/Application/Timerecording/Themes/Akebi/css/timerecording-small.scss +++ b/Application/Timerecording/Themes/Akebi/css/timerecording-small.scss @@ -7,6 +7,7 @@ html, body { max-width: 100%; overflow: hidden; font-family: var(--font-family); + font-display: swap; color: #000; }