Site logo

Archived topic

Deactivating Google Fonts

3 replies · Started by Zad on September 15, 2018

Viewing posts 1–4 of 4

I'm currently using the following code to deactivate Google Fonts because I use TypeKit on my blog. What I'm wondering is if there are any benefits to actually deactivating Google Fonts. Will it lower the size of the website? Or speed it up?

add_action( 'wp_enqueue_scripts','tu_remove_google_fonts', 10 );
function tu_remove_google_fonts() {
    wp_dequeue_style( 'generate-fonts' );
}

Hi there,

fonts are only requested if they are used in the site, so removing fonts you are not using won't make a difference to the front-end performance.

Thanks! This is helpful

You're welcome :)

This archived topic is closed to new replies.