Google font slowing down page load - by the-kreatives

This topic has 6 replies, 2 voices, and was last updated 8 years, 3 months ago ago by Robert Hall

  • Avatar: the-kreatives
    the-kreatives
    Participant
    August 12, 2016 at 17:33

    Dear 8theme team,

    i’m facing multiple issues with google fonts which are slowing down my site based on GTmetrix performance reports:

    1. I noticed that multiple instances of the same fonts are being requested when loading the home page. How can this be optimized in the theme files?

    2. I have set the whole site to use font Raleway through the Theme Settings > typography page (body, headers, etc.). However i noticed that several other fonts are being loaded from googlefontapis as well (Open Sans, Roboto, Droid) while i’m not using them. Which elements of the theme are using those? How can i get rid of theme?

    3. Google fonts seem to be the slowest elements to load on my site. would it store them on my server instead ? if so how to modify the theme in order to load the locally stored fonts instead of the ones at Google ? (i noticed a fonts subfolder in Royal, but i don’t know how to use it.

    Thanks for your help.

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    August 15, 2016 at 10:31

    Hello,

    1, 2) Please provide us with wp-admin and FTP credentials in Private Content.

    3) You can use your own fonts via @font-face. Read more here:
    https://css-tricks.com/snippets/css/using-font-face/

    Regards,
    Robert Hall

    Avatar: the-kreatives
    the-kreatives
    Participant
    August 15, 2016 at 23:35

    Thanks for your feedback.
    find below the requested information.
    Regards,
    jacques

    Please, contact administrator
    for this information.
    Avatar: Robert Hall
    Robert Hall
    Support staff
    August 16, 2016 at 12:07

    Hello,

    Navigate to Dashboard->Revolution Slider->slider settings and remove fonts there. See screenshot: http://prntscr.com/c6d4ys

    Don’t forget to clear all cache.

    Regards,
    Robert Hall

    Avatar: the-kreatives
    the-kreatives
    Participant
    August 17, 2016 at 14:23

    Thanks a lot Robert,
    I remove fonts from Revolution Slider and Punch Font and it worked.
    On top I noticed that 2 more Google fonts (Open Sans, Roboto) were loaded by default in the Royal>Framework>theme.php file, so I also removed them.

    On the other hand my site no longer renders Raleway font in headings although I kept this setting unchanged in the theme options>typography page and Raleway still gets loaded from google.
    Can you help me to fix this last point?
    Thanks & regards
    Jacques

    Avatar: Robert Hall
    Robert Hall
    Support staff
    August 17, 2016 at 14:48

    Hello,

    I’ve added this code in Theme Options->Custom CSS->Global Custom CSS. Please check.

    h1, h2, h3, h4, h5, h6{
        font-family: Raleway, sans-serif;
    }

    Regards,
    Robert Hall

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.