September 19, 2016 at 5:39 pm #1182220
My page is having trouble with https://developers.google.com/speed/pagespeed/insights/
One of the few remaining issues is that my CSS Delivery is making multiple trips to google to get the 5 fonts I want:
Google posted on their blog that you can combine all font requests into one by using | as a separator like this: <link rel=”stylesheet” type=”text/css” href=”http://fonts.googleapis.com/css?family=Droid +Sans|Lobster”>September 19, 2016 at 11:25 pm #1182594
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
Thanks.September 20, 2016 at 7:18 pm #1183873This reply has been marked as private.September 21, 2016 at 1:59 am #1184248
Thanks for the URL, actually you can combine the request of those Google font. Please go to https://fonts.google.com/ find your fonts and click the red + icon that corresponding to it to create a font families. It will automatically generate a request link that is something like this:
<link href="https://fonts.googleapis.com/css?family=Baloo+Bhaina|David+Libre|Lato|Open+Sans|Roboto|Slabo+27px" rel="stylesheet">
Hope it helps, Cheers!September 21, 2016 at 5:43 pm #1185511
Thanks Friech, I can definitely do that, could you also direct me to the proper place to put that link afterwards?
Will I also have to clean up some code to get rid of the old urls or does X manage all of this somewhere?September 21, 2016 at 11:25 pm #1185938
You can add the
@importstatement on top of your child theme’s style.css file. Yes, please remove those old Google fonts request to avoid redundancy. Just make sure you included all your needed fonts on your
Let us know how it goes.