completely remove google fonts from the loading process

Posted in: Newsmag
Post count: 66

Hi, I already replaced ‘Roboto’ and ‘Open Sans’ fonts on style.css with my typekit fonts.

Now when I load a page, I see for a fraction of a second, one or two different fonts before my typekit font appears, for example on the main menu of the page.

I know that on includes/wp-booster/td_wp_booster_functions.php and includes/td_config.php there are info about Google font, but exactly what code should I remove to completely get rid of them, especially because it looks funny and makes the loading slower.

regards,
Felipe Z.

Post count: 6600

Hi,

You can try to comment or remove the one from td_config file: http://screencast.com/t/Ji1kHg3cO let me know how it goes and also provide your site’s url so I can inspect it.

Thanks

Post count: 66

Thanks Lucian, I commented that code from td_config as suggested and it seems to works fine (site didn’t crash). My concern is always it loads another font and then my configured typekits.

The site is here.

regards,
Felipe Z.

Post count: 6600

Hi,

You should also overwrite the verdana.. fonts: http://screencast.com/t/o7QGO6tqs in theme’s style.css file: http://screencast.com/t/MFRJMO4J then test again.

The open sans and roboto and open sans fonts are still loaded to the page, so make sure that you also empty all caches and purge files after commenting them from the mentioned file.

Thanks

Post count: 66

Hi Lucian,

using DevTools I see that on Sources fonts.googleapis.com is still loaded on the page.
http://fonts.googleapis.com/css?family=Open+Sans%3A300italic%2C400italic%2C600italic%2C300%2C400%2C600&subset=latin%2Clatin-ext&ver=4.2.3

Should I need to delete code on includes/wp-booster/td_wp_booster_functions.php also?

Fz

Post count: 6600

Hi,

I’ve checked your site’s homepage source and couldn’t find it anymore, I guess you have removed it.
Let me know if you still need assistance on this.

Thanks for the message!

Post count: 66

Yes, you’re right Lucian, now it is not loaded. Great. Thanks.

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newsmag’ is closed to new topics and replies.