summaryrefslogtreecommitdiff
path: root/font.css
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@gmail.com>2019-02-21 10:07:50 +0100
committerBenjamin Franzke <benjaminfranzke@gmail.com>2019-02-21 10:23:39 +0100
commit10ca8e5756a74a948db7701e6de26e0e65352e67 (patch)
tree661990e7a4f73000f42e95fc8ffc58d51726e0b6 /font.css
parent84b1c0f57ee0cc66bb15076b54aa2e3581fc91ba (diff)
downloadmutti-web-10ca8e5756a74a948db7701e6de26e0e65352e67.tar.gz
mutti-web-10ca8e5756a74a948db7701e6de26e0e65352e67.tar.bz2
mutti-web-10ca8e5756a74a948db7701e6de26e0e65352e67.zip
Add font-display: optional to font-face rules
To make pagespeed insights happy: > Sie können Gebrauch von der CSS-Funktion "font-display" machen, > um sicherzugehen, dass der Text für Nutzer sichtbar ist, > während Webfonts geladen werden. Weitere Informationen.
Diffstat (limited to 'font.css')
-rw-r--r--font.css4
1 files changed, 4 insertions, 0 deletions
diff --git a/font.css b/font.css
index 9d15c15..c0383b1 100644
--- a/font.css
+++ b/font.css
@@ -1,5 +1,6 @@
@font-face {
font-family: 'Roboto';
+ font-display: swap;
font-style: normal;
font-weight: 400;
src:
@@ -10,6 +11,7 @@
}
@font-face {
font-family: 'Roboto';
+ font-display: swap;
font-style: normal;
font-weight: 500;
src:
@@ -20,6 +22,7 @@
}
@font-face {
font-family: 'Roboto';
+ font-display: swap;
font-style: normal;
font-weight: 700;
src:
@@ -30,6 +33,7 @@
}
@font-face {
font-family: 'Roboto';
+ font-display: swap;
font-style: italic;
font-weight: 400;
src: