From b3bd9a8c6dd241ed16bf97711e9cba6e5ebe3f66 Mon Sep 17 00:00:00 2001 From: Simon Martens Date: Sat, 27 Jan 2024 11:00:42 +0100 Subject: [PATCH] Disabled font inlinig, so the css can load quicker --- HaWeb/Views/Shared/_Head.cshtml | 35 ++++++++++----- HaWeb/Views/Shared/_Scripts.cshtml | 2 + HaWeb/package-lock.json | 71 ++++++++++++++++++++++++++++++ HaWeb/vite.config.js | 3 +- HaWeb/wwwroot/css/fonts.css | 16 +++---- HaWeb/wwwroot/css/site.css | 1 - 6 files changed, 105 insertions(+), 23 deletions(-) diff --git a/HaWeb/Views/Shared/_Head.cshtml b/HaWeb/Views/Shared/_Head.cshtml index a2a7e84..1169c87 100644 --- a/HaWeb/Views/Shared/_Head.cshtml +++ b/HaWeb/Views/Shared/_Head.cshtml @@ -9,19 +9,30 @@ --> - -@* Resources *@ - -@* We do not preload the fonts since they are embedded in the css by vite - - - - *@ +@* Scripts *@ + + @* Styles *@ + -@* Scripts *@ - - - \ No newline at end of file +@* Resources *@ +@* We do not preload the graphics since they are embedded in the css by vite. +We dont preload here, because we have 6 requests: +(0. html & favicon) +1. mark +2. htmx +3. fonts.css +4. style.css +5. scripts.js + + + + + + + + + *@ + diff --git a/HaWeb/Views/Shared/_Scripts.cshtml b/HaWeb/Views/Shared/_Scripts.cshtml index 19bb73c..034afe2 100644 --- a/HaWeb/Views/Shared/_Scripts.cshtml +++ b/HaWeb/Views/Shared/_Scripts.cshtml @@ -1,3 +1,5 @@ + +