Web Fonts Optimization – possible issue
-
When I put “Web Fonts Optimization” = ON I see that you add to the source code:
<link rel="preconnect" crossorigin/> <link rel="preconnect" />
The first line preconnecting fonts.gstatic is also added by Elementor since version 3.9.0 (in their changelog https://www.ads-software.com/plugins/elementor/#developers they say “Tweak: Added rel=preconnect tag to Google Fonts to improve performance”).
So now I have 2 identical lines for that preconnect. Will it be ignored? Or can it cause performance issues? Is there any way to not print that line with SG Optimizer?
And PageSpeed Insights throws a warning that seems related to your 2nd line precconnecting from fonts.googleapis: it says that it found the
<link rel=preconnect>
for fonts.googleapis.com, but the browser has not used it. Also it says that more than 2<link rel=preconnect>
has been found and it’s not recommended.Then why are you preconnecting to fonts.googleapis if it won’t be used?
The line that you are removing from the source code and changing the way you load the fonts is this one added by Elementor:
<link rel='stylesheet' id='google-fonts-1-css' media='all' />
Regards.
- The topic ‘Web Fonts Optimization – possible issue’ is closed to new replies.