Base solution for your next web application
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

Markdown is supported
Copy & paste or drag & drop images (max 30 MB per image)

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

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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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.

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    dzungle created

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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • 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 ?

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    abarref created

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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)
  • User Avatar
    0
    abarref created

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

    Markdown is supported
    Copy & paste or drag & drop images (max 30 MB per image)