feat(ui): set font-display swap policy

This tells the browser to use a fallback font until Leto is loaded, which speeds up initial rendering, especially on slow clients
This commit is contained in:
Łukasz Mierzwa
2019-02-11 19:23:09 +00:00
parent 207eecd254
commit 17628fec8e

View File

@@ -3,6 +3,7 @@
$web-font-path: "";
@font-face {
font-display: swap;
font-family: "Lato";
font-weight: 400;
font-style: normal;
@@ -12,6 +13,7 @@ $web-font-path: "";
}
@font-face {
font-display: swap;
font-family: "Lato";
font-weight: 400;
font-style: italic;
@@ -23,6 +25,7 @@ $web-font-path: "";
}
@font-face {
font-display: swap;
font-family: "Lato";
font-weight: 700;
font-style: normal;