'Do not request https://fonts.gstatic.com
I am trying to speed up my website and want to get rid off some https://fonts.gstatic.com requestes. For instance, PageSpeed Insights gives me a warning about "Make sure all text remains visible while loading the web fonts" about https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2
While gtmetrix is displaying this request instead: https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxK.woff2
Do not know why they are different, but how can I omit this type of request? I can not find these text strings when I search for them in my WordPress public_html directory using SSH.
Gtmetrix:
Solution 1:[1]
can you add this line.
<link rel="preload" as="font" type="font/woff2" href="https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxKKTU1Kg.woff2" crossorigin>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Tasdemir |