From 19b432c509c47ac1f5a1091d71a2c0a4d649d493 Mon Sep 17 00:00:00 2001 From: f0x Date: Sun, 28 Jul 2024 15:31:33 +0200 Subject: [PATCH] preload fonts --- web/assets/static-pages/index.html | 2 ++ web/source/css/base/fonts.css | 11 +++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/web/assets/static-pages/index.html b/web/assets/static-pages/index.html index d3340ed31..53717d517 100644 --- a/web/assets/static-pages/index.html +++ b/web/assets/static-pages/index.html @@ -17,6 +17,8 @@ + + GoToSocial Testrig Instance - GoToSocial diff --git a/web/source/css/base/fonts.css b/web/source/css/base/fonts.css index 235b8b818..ef40d989a 100644 --- a/web/source/css/base/fonts.css +++ b/web/source/css/base/fonts.css @@ -4,17 +4,16 @@ font-weight: 400; font-display: swap; font-style: normal; - src: url('../fonts/noto-sans-v27-latin-regular.woff2') format('woff2'), - url('../fonts/noto-sans-v27-latin-regular.woff') format('woff'); + src: url('/assets/fonts/noto-sans-v27-latin-regular.woff2') format('woff2'), + url('/assets/fonts/noto-sans-v27-latin-regular.woff') format('woff'); } -// TODO: do we really need to include the bold variant? /* noto-sans-700 - latin */ @font-face { font-family: "Noto Sans"; font-weight: 700; font-display: swap; font-style: normal; - src: url('../fonts/noto-sans-v27-latin-700.woff2') format('woff2'), - url('../fonts/noto-sans-v27-latin-700.woff') format('woff'); -} */ + src: url('/assets/fonts/noto-sans-v27-latin-700.woff2') format('woff2'), + url('/assets/fonts/noto-sans-v27-latin-700.woff') format('woff'); +}