perf: ⚡ Avoid FOIT
https://developer.chrome.com/docs/lighthouse/performance/font-display/#how-to-avoid-showing-invisible-textmaster
parent
14eb7945a4
commit
c98310be3a
|
@ -12,14 +12,17 @@
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'vt323';
|
font-family: 'vt323';
|
||||||
src: url('/assets/fonts/VT323-Regular.ttf') format('truetype');
|
src: url('/assets/fonts/VT323-Regular.ttf') format('truetype');
|
||||||
|
font-display: swap;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'ShareTechMono';
|
font-family: 'ShareTechMono';
|
||||||
src: url('/assets/fonts/ShareTechMono-Regular.ttf') format('truetype');
|
src: url('/assets/fonts/ShareTechMono-Regular.ttf') format('truetype');
|
||||||
|
font-display: swap;
|
||||||
}
|
}
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'RobotoMono';
|
font-family: 'RobotoMono';
|
||||||
src: url('/assets/fonts/RobotoMono-VariableFont_wght.ttf') format('truetype');
|
src: url('/assets/fonts/RobotoMono-VariableFont_wght.ttf') format('truetype');
|
||||||
|
font-display: swap;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Global stylesheet */
|
/* Global stylesheet */
|
||||||
|
|
Loading…
Reference in New Issue