Set font-display: swap;
for fonts definition
> Gives the font face an extremely small block period and an infinite swap period. — https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display#values
This commit is contained in:
parent
247efc5345
commit
4e8ebfa722
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
|||
url('./font/FiraSans-Light.woff') format('woff');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
|
@ -17,6 +18,7 @@
|
|||
url('./font/FiraSans-SemiBold.woff') format('woff');
|
||||
font-weight: bold;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
|
@ -25,6 +27,7 @@
|
|||
url('./font/FiraSans-LightItalic.woff') format('woff');
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue