about summary refs log tree commit diff
path: root/pkgs/profpatsch/profpatsch.de
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2020-09-16 15:40:37 +0200
committerProfpatsch <mail@profpatsch.de>2020-09-16 15:42:20 +0200
commit427e24a7fba51113dec35b633fae11e8a850d9d4 (patch)
tree299009c615d6f18fa6fe81449dd8b3f923066c12 /pkgs/profpatsch/profpatsch.de
parentf6561ac1edae7e795f1edaa96c73f4b34f0e9b04 (diff)
pkgs/profpatsch.de: use font-display: swap to improve page load
Diffstat (limited to 'pkgs/profpatsch/profpatsch.de')
-rw-r--r--pkgs/profpatsch/profpatsch.de/main.css.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/profpatsch/profpatsch.de/main.css.nix b/pkgs/profpatsch/profpatsch.de/main.css.nix
index 9ac10fc5..3ee6ac4d 100644
--- a/pkgs/profpatsch/profpatsch.de/main.css.nix
+++ b/pkgs/profpatsch/profpatsch.de/main.css.nix
@@ -7,6 +7,8 @@
     font-weight: 400;
     src: local('Quattrocento'), url(${fontsQuattrocentoLatin}) format('woff2');
     unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+    /* use system font until font is loaded */
+    font-display: swap;
 }
 /* latin */
 @font-face {
@@ -15,6 +17,8 @@
     font-weight: 300;
     src: local('Open Sans Light'), local('OpenSans-Light'), url(${fontsOpenSansLatin}) format('woff2');
     unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+    /* use system font until font is loaded */
+    font-display: swap;
 }
 
 body {