Font loading

1.93K viewsIssuesfont
0

Hi, when i do a pagespeed insight, it say my font are not loading when the page loading (need to display them in swap) i did it with google fonts display swap and the only things that remain that are fonts used by anspress that are’nt loading in swap. So my question is how to set the anspress fonts to display: swap. I thank you very much! the pagespeed is : https://developers.google.com/speed/pagespeed/insights/?hl=fr&url=https%3A%2F%2Finformerick.com%2F&tab=desktop
Thank you!

The page I need help with: https://informerick.com/

Answered question
0

Hello,
I think I have already answered your question but here it is again:

Please follow instructions on below link:
https://anspress.net/resources/getting-started/overriding-and-customizing-anspress/

Please create a css file as instructed in link above and paste below contents:

@font-face{
  font-display: swap !important;
  font-family:'anspress';src:url("fonts/anspress.eot?sit72p");
  src:url("fonts/anspress.eot?sit72p#iefix") format("embedded-opentype"),url("fonts/anspress.ttf?sit72p") format("truetype"),url("fonts/anspress.woff?sit72p") format("woff"),url("fonts/anspress.svg?sit72p#anspress") format("svg");
  font-weight:normal;
  font-style:normal
}

Answered question