Welcome to Centmin Mod Community
Register Now

Wordpress Load Google Fonts Local (the easy way)

Discussion in 'Blogs & CMS usage' started by EckyBrazzz, May 26, 2019.

  1. EckyBrazzz

    EckyBrazzz Active Member

    391
    73
    28
    Mar 28, 2018
    Brazil
    Ratings:
    +143
    Local Time:
    8:19 AM
    1.17.x
    10.3.x
    I always liked the Google fonts but disliked the fact that it slows down my sites and you can see when the fonts are loaded into your theme because the complete fonts change at once.

    A good solution for this is to host your Google fonts locally, but if your running out of time there is a good and quick solution for it. It's the plugin CAOS for Webfonts, it has only a few installs but it works great and should be one of the plugins that needs to be installed by default on CMM. You can even disable the pre-connect of google fonts in Autoptimize, after the install of the plugin you won't need it anymore.

    We already have Autoptimize installed by default and with the CAOS plugin, we can use the Autoptimize to disable the loading of the google fonts completely. Just follow the instructions of the plugin and enjoy your quickly loading site with this great plugin. You get to see your favorite font at once without waiting for the Google font to load.

    One more step to get our WordPress even better, more to come! Now I'm trying to find out how to host other js locally to speed things even up better.

    Gonna keep you informed and have fun with you faster WP install!
     
  2. eva2000

    eva2000 Administrator Staff Member

    40,276
    8,926
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,746
    Local Time:
    9:19 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yup local font hosting speeds things up but I found removing google fonts and using system fonts is even faster ;)
     
  3. EckyBrazzz

    EckyBrazzz Active Member

    391
    73
    28
    Mar 28, 2018
    Brazil
    Ratings:
    +143
    Local Time:
    8:19 AM
    1.17.x
    10.3.x
    Don't know if they are the same type of font's. But if so, will test it. Like the font that I have now on my theme
     
  4. rdan

    rdan Well-Known Member

    4,547
    1,089
    113
    May 25, 2014
    Ratings:
    +1,590
    Local Time:
    7:19 PM
    Mainline
    10.2
    And that is?
    :D
     
  5. eva2000

    eva2000 Administrator Staff Member

    40,276
    8,926
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,746
    Local Time:
    9:19 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    yup that is this forum's switch to using system fonts - there's only so much you can do if you use Google or non-system fonts as you still have to load those fonts. System fonts don't have to load anything as it's already part of your visitor's pc/laptop/mobile device's system font library :D
     
    • Like Like x 1
  6. Fernando

    Fernando Member

    64
    10
    8
    Jul 21, 2017
    Ratings:
    +18
    Local Time:
    5:19 AM
    1.13.3
    10.1.25
    Hi,

    Google fonts now support font-display property so instead of host fonts locally you should consider loading Google fonts with this property.
     
  7. EckyBrazzz

    EckyBrazzz Active Member

    391
    73
    28
    Mar 28, 2018
    Brazil
    Ratings:
    +143
    Local Time:
    8:19 AM
    1.17.x
    10.3.x
    • Informative Informative x 1
  8. eva2000

    eva2000 Administrator Staff Member

    40,276
    8,926
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,746
    Local Time:
    9:19 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Yeah not fully supported yet
    But still good to use, I have been using font-display for over a year now :D
     
..