Pagespeed Insights recommends preloading certain font files to speed up page load. I have added the code within my element, but Pagespeed still does not detect it. I tried all the fixes mentioned on other answers:
- Using crossorigin attribute(with anonymous)
- Using the insert headers/footers plugin
- Loading other font types like .woff, .eot
Here is the link to the page. This page is only an example. The same problem exists on all other posts too where Pagespeed mentions:
Consider using `<link rel=preload>` to prioritize fetching resources that are currently requested later in page load. Learn more.
URL
Potential Savings
…fonts/johannes-font.ttf(productiveclub.com)
2,670 ms
The multiple preloads right now is only for testing. The same error persists when I retain only one preload statement.
Can anyone understand what's wrong in my code here? Thanks in advance.