4

I have tested my code with LightHouse on chrome and I am unable to solve the Error -

Ensure text remains visible during webfont load.
Leverage the font-display CSS feature to ensure text is user-visible while webfonts are loading.

I have introduced this css code in style.css ,style.scss inside assets , index.html and every .css file of component in angular7 template.

My css code is -

@font-face {
    font-family: "Open Sans Regular";
    font-style: normal;
    src: url("../font/opensans-regular-webfont.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
  }

Whichever place I kept the css, I am unable to solve the error.

Techdive
  • 997
  • 3
  • 24
  • 49

0 Answers0