[Resolved] Deactivating Google Fonts

Home Forums Support [Resolved] Deactivating Google Fonts

Home Forums Support Deactivating Google Fonts

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #678260
    Zad

    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' );
    }
    #678437
    David
    Staff
    Customer Support

    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.

    #678768
    Zad

    Thanks! This is helpful

    #678786
    David
    Staff
    Customer Support

    You’re welcome 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.