From 10ca8e5756a74a948db7701e6de26e0e65352e67 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 21 Feb 2019 10:07:50 +0100 Subject: Add font-display: optional to font-face rules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- font.css | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'font.css') 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: -- cgit