Open thetwopct opened 3 years ago
Is it possible to update the font-display to block instead of auto to fix the "Ensure text remains visible during webfont load" in Google Lighthouse performance analysis?
FontAwesome have done similar.
@font-face { font-family: 'Line Awesome Brands'; font-style: normal; font-weight: normal; font-display: auto; src: url("../fonts/la-brands-400.eot"); src: url("../fonts/la-brands-400.eot?#iefix") format("embedded-opentype"), url("../fonts/la-brands-400.woff2") format("woff2"), url("../fonts/la-brands-400.woff") format("woff"), url("../fonts/la-brands-400.ttf") format("truetype"), url("../fonts/la-brands-400.svg#lineawesome") format("svg"); } .lab { font-family: 'Line Awesome Brands'; } @font-face { font-family: 'Line Awesome Free'; font-style: normal; font-weight: 400; font-display: auto; src: url("../fonts/la-regular-400.eot"); src: url("../fonts/la-regular-400.eot?#iefix") format("embedded-opentype"), url("../fonts/la-regular-400.woff2") format("woff2"), url("../fonts/la-regular-400.woff") format("woff"), url("../fonts/la-regular-400.ttf") format("truetype"), url("../fonts/la-regular-400.svg#lineawesome") format("svg"); } @font-face { font-family: 'Line Awesome Free'; font-style: normal; font-weight: 900; font-display: auto; src: url("../fonts/la-solid-900.eot"); src: url("../fonts/la-solid-900.eot?#iefix") format("embedded-opentype"), url("../fonts/la-solid-900.woff2") format("woff2"), url("../fonts/la-solid-900.woff") format("woff"), url("../fonts/la-solid-900.ttf") format("truetype"), url("../fonts/la-solid-900.svg#lineawesome") format("svg"); }
Thanks 🙏
+1
Is it possible to update the font-display to block instead of auto to fix the "Ensure text remains visible during webfont load" in Google Lighthouse performance analysis?
FontAwesome have done similar.
Thanks 🙏