Ensure text remains visible during webfont load – Google speed

7 replies2 participantsUpdated by Olga Barlow

  • Avatar: fabio_vito
    Fabio
    Participant

    Dear Support,

    I would need to add the “font-display: swap;” css command in all the legenda/css/fonts.

    Could you please suggest me how to implement this addition for example through the legenda child?

    Thanks in advance.

    Fabio.

    7 Answers

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    We made some changes in legenda/css/et-fonts.css and added font-display: swap. I have sent you fixed file to your registration email. Upload it to your site. Fix will be included in the next theme update.

    Regards

    Avatar: fabio_vito
    Fabio
    Participant

    Dear Olga,

    Thank you for the file! It works and solved some fonts issues.

    At the same time google reports other fonts that would require the same addition (font display swap). Please have a look here: https://snipboard.io/9b7EwK.jpg

    Is there a way to fix also these 2 remaining fonts?

    Thanks.

    Fabio.

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    I have sent you the additional files to fix the issue.

    Regards

    Avatar: fabio_vito
    Fabio
    Participant

    Dear Olga,

    Thank you very much for the provided files, they helped and improved the situation. At the same time, 2 additional font files appear to need a further adjustment (font display swap):
    1) fonts/fontawesome-webfont.woff?v=3.2.1
    2) fonts/star.woff

    Could you please have a look at it and do your magic?

    Thanks in advance.

    Fabio.

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    I sent the style.css file to fix the font awesome font but star.woff is not our theme font. What is the full path to file?

    Regards

    Avatar: fabio_vito
    Fabio
    Participant

    Hi Olga,

    Thank you! I will replace the style.css

    You are right the second font does not belong to the theme, it is related to a plugin.

    Fabio.

    Avatar: Olga Barlow
    Olga Barlow
    Participant

    Hello,

    You are welcome.

    Regards

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register