how to load fonts from my hosting service to improve speed?

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

Status: not resolved
  • This topic has 10 replies, 2 voices, and was last updated 8 mo by  Jacob.
Viewing 11 reply threads
  • Author
    Posts
    • #17863

      lioramy1
      Member

      Hello,
      The theme is configured to load fonts from gstatic.com
      In my case that adds almost 2 seconds to the site loading time, and even more on mobile. see attached.
      waterfall
      What is the best and easiest way to load the fonts from my hosting service?

      Thanks,
      Lior.

    • #17864

      lioramy1
      Member

      In addition,
      What is the best and easiest way to load default fonts to be displayed while the theme fonts are loading – in a way that fonts will not slow the website?

      Thanks

    • #17872

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17880

      lioramy1
      Member

      Sorry, I don’t understand you.
      Why can’t you direct me to the css or js section that specifies where to load the fonts from ?
      I know it depends on issues like user location and such – but it always significantly slows the site down. So why can’t I change that?

      Thanks,
      Lior.

    • #17899

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17916

      lioramy1
      Member

      Jacob, you keep answering the same reply over and over.
      I know that the fonts are loaded from gstatic.com.
      This load adds more than 1.2 seconds to the website load time – that is terrible !!!

      Please tell me – how to change that?

      How to load the fonts from my server?

      How to add
      font-display: swap;
      to the css @fontface section?

    • #17918

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #17920

      lioramy1
      Member

      Jacob, really, can you please listen to me?
      I like your font – that is not the problem.
      My problem – it slows my website!

      Please help me make my website faster because it is crucial for me.

      In your template css, you should NOT point to gstatic.com in a way that is hardcoded and I can not change it.
      SO, PLEASE, how can I change your theme font CSS ???

      The second alternative, you should configure your template in a way that loading the font from gstatic.com dos NOT block the page rendering.
      It is done by adding:

      font-display: swap;

      In the css @fontface section.
      Did you do that?? How can I see the code you used in the css @fontface definition of your template – where is that code?

    • #17926

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #18027

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

    • #18011

      lioramy1
      Member

      Hello Jacob,
      Sorry I am answering you so late, I was away and did not have time to deal with this.

      Sorry again, but I think you are not answering my questions…again…

      I do not want to use my own custom font.
      My website, and the website of any of your theme users load slower because of issues related to how you coded the font loading.

      1.
      Take a look at this – it is an error I get from google:
      err 1

      Please – make sure to understand that this error has to be fixed on your side.
      Or, tell me exactly what to do (without plugins) to fix this.

      2.
      Take a look at this – it is another error I get from google:
      err2

      This error clearly states that you did not code the font loading correctly.
      You have to code your css in a way that the user sees a default font while the theme font loads.

      I am saying this again and again and you don’t listen…
      I took every possible option out of your theme to reduce most of its js/css files, I am using siteground.com and still, my website is very very slow. This is 100% due to the way you coded your theme.

      err3

      Please tell me – how to make this website faster?
      No one has the patience to wait for your theme to load.

    • #18046

      Jacob
      Staff

      Hey there, You must be logged in to view this reply!

      Login | Register | Forgot Password?

Viewing 11 reply threads
  • You must be logged in to reply to this topic.

This is a PRIVATE forum for verified users only, to view all replies/answers, you must be logged in!

© Copyright 2020 by wpthms.com. All Rights Reserved.