Tagged: google fonts, Page Speed
-
AuthorPosts
-
November 29, 2017 at 3:33 pm #883071
Hi everyone, not sure if this is beyond the scope of the theme support, but I cant seem to figure out how to fix this pagespeed recommendation to serve resources from a consistent URL:
Looks like it’s from Google Fonts.
This doesnt happen with my other themes so I wasn’t sure if it was Enfold related. I use both WP Rocket and Autooptimize plugins. Anyone have any suggestions? Thanks!
December 1, 2017 at 8:23 pm #883992Hey mmr1234,
Yes that is a problem of Enfold, on the way the fonts are loaded we are afraid.
As you use the same font many times, what I can suggest is to go custom CSS, add the option of the font there as Import from google
and then use the font family CSS for the classes that are worked.That would help you to make it work.
Best regards,
BasilisSeptember 19, 2020 at 4:58 pm #1247002I have the exact same issue:
From GTMetrix:
The following resources have identical contents, but are served from different URLs. Serve these resources from a consistent URL to save 1 request(s) and 2.4KiB.https://fonts.googleapis.com/css?family=Open+Sans
https://fonts.googleapis.com/css?family=Open+Sans&ver=5.5.1
The following resources have identical contents, but are served from different URLs. Serve these resources from a consistent URL to save 1 request(s) and 2.1KiB.https://fonts.googleapis.com/css?family=Josefin+Sans%3A400%2C600&ver=5.5.1
https://fonts.googleapis.com/css?family=Josefin+Sans:400,600
The following resources have identical contents, but are served from different URLs. Serve these resources from a consistent URL to save 1 request(s) and 1.5KiB.https://fonts.googleapis.com/css?family=Lato%3A400%2C700&ver=5.5.1
https://fonts.googleapis.com/css?family=Lato:400,700I don’t know how to implement the fix suggested.
September 20, 2020 at 1:42 pm #1247113Hi Takara22,
Best regards,
VictoriaSeptember 21, 2020 at 3:57 pm #1247391Victoria … I’m not really sure how “best regards” helps me with this issue. Perhaps you were just saying hello.?
Or is that like “Good luck. You’re on your own. We can’t help you.” ?
Or does it mean someone has gone in and fixed the CSS for me?
???September 21, 2020 at 8:30 pm #1247463Hi Takara22,
https://share.getcloudapp.com/8LuPvkJd There was actually a reply in private but since you did not start the thread, you cannot really see it. What I was saying is that you have some php in your Quick css and it’s not supposed to be there. Please move it to the functions.php.
As for the fonts, it can be that some plugins are loading them too.Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.