From 4eb0e085c1cb520da99937551f3dc432e626c0f3 Mon Sep 17 00:00:00 2001 From: Amjad <69120545+amjadorfali@users.noreply.github.com> Date: Mon, 26 Aug 2024 04:28:17 +0300 Subject: [PATCH] docs(themes): update `Preloading Fonts` section (#2837) --- .../routes/(inner)/docs/themes/+page.svelte | 32 +++++++++++-------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/sites/skeleton.dev/src/routes/(inner)/docs/themes/+page.svelte b/sites/skeleton.dev/src/routes/(inner)/docs/themes/+page.svelte index 473d6ce5e2..57778e2759 100644 --- a/sites/skeleton.dev/src/routes/(inner)/docs/themes/+page.svelte +++ b/sites/skeleton.dev/src/routes/(inner)/docs/themes/+page.svelte @@ -172,8 +172,8 @@ plugins: [
- Note that Skeleton also provides a Lightswitch utility if you wish - toggle between light and dark modes. + Note that Skeleton also provides a Lightswitch utility if you + wish to toggle between light and dark modes.
@@ -308,23 +308,27 @@ body { /> {/each} -
- To avoid your page flickering during hydration, consider preloading fonts within the head
- tag in app.html
+ To avoid your page flickering during hydration, consider using the font-display
descriptor for the
+ @font-face
+ at-rule that determines how a font face is displayed based on whether and when it is downloaded and ready to use.
+
+
Replace your @font-face
at-rule with the following: