Hello,

using the google speed tool, one of the issue is about the text must be visibile while site is loading the font.

Where and how have I to add the "font-display" reccomended by google? There is an other way?

Thank you
Best regards
Michele

    michelerubin Hi

    You can try opening this file: plugins/system/t4/src/t4/Document/Template.php

    At approx line 293:

    $this->doc->addStylesheet('https://fonts.googleapis.com/css?family=' . urlencode(implode('|', $family)));

    change it to:

    $this->doc->addStylesheet('https://fonts.googleapis.com/css?family=' . urlencode(implode('|', $family)).'&display=swap');
    Write a Reply...
    You need to Login to view replies.