Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

How to use google fonts when running app offline? #9861


User avatar
0
dzungle created

Hello Support Team,

I get this error message when running the app offline (without internet connection).

This error significantly slows down the page loading. Could you please help me solve this issue? Best Regards


7 Answer(s)
  • User Avatar
    0
    musa.demir created

    Can you please check that https://stackoverflow.com/a/15930264

  • User Avatar
    0
    dzungle created

    Hello Support Team,

    I see you have Roboto fonts and related css in src/assests/fonts. But when running app without internet connection, we still get this error. And this issue significantly slowdowns the page loading. The cause of this issue, as I guest, is because of this directive: @import url(https://fonts.googleapis.com/css?family=Roboto:400,500);

    Please, help us resolve this issue.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @dzungle

    Could you share your version ? Becasue as I can see, we are using local Roboto font in the latest version.

  • User Avatar
    0
    dzungle created

    Hi @ismcagdas, We are using version 10.4.0 (ASP.NET CORE and Angular).

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Thanks. Could you search your solution for "fonts.googleapis.com" and see if you can find any result ?

  • User Avatar
    0
    abarref created

    Hi @dzungle, I'm having the same problem. How did you resolve it? Thanks

  • User Avatar
    0
    abarref created

    Update: in our case it was Syncfusion material.css that had an internal import of Google Fonts.