![]() Looking more closely at the list of font URLs in the PageSpeed Insights window shows a list that contains URL that look like: Īs you can see from the URLs these are all links to Google’s Roboto font. So, it was obvious that a third party system on my site was using web fonts and, as with so many other things, if you include something on your site from a third party, Google Analytics blames you for its bad behaviour. So few in fact, that until recently the “ correspondence” style text on my site was shown as Comic Sans, but let’s not talk about that! The articles that Google links to say that the best way to fix this problem is to set the font-display attribute of the rule in your CSS file, something like: Sans Īll of this came as something of a surprise as my site doesn’t use any web fonts at all it only uses the built-in browser fonts and, at the time I got this warning, I actually used very few of those. This allows the viewer to start reading the text immediately, and will minimize the amount of reformatting that the browser has to do. ![]() A better behaviour is to display the text immediately using a system font, download the web font, and then reformat the text using the downloaded web font. Once the font has downloaded, the text will appear, but until then any text using that font is invisible. Google will give you this advice when you rely on a web font by default when a web font is downloading, the browser will display nothing.
0 Comments
Leave a Reply. |