[NSFW] How to ensure text remains visible during webfont loading?
-
In search console performance metrics Google always shows warning concerning webfonts during reload. I know there are couple of plugins offering fixes for the issue, but I don’t want to waste too much resources for little functionality that can be solved by placing couple of lines of code in functions.php. Can someone please share a reliable code to fix the issue with minimal resource usage? Well, I know I should place
font-display: swap
in some lines of CSS files charged to download fonts from remote servers, but one file has many lines of code which instructs the browser to download the fonts. One PHP function could do that swiftly.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘[NSFW] How to ensure text remains visible during webfont loading?’ is closed to new replies.