Closed jinder closed 4 years ago
Hi,
1) Are you consuming the font using a CDN or locally as an asset? 2) Does this issue happen on other browsers?
This seems related to a Chrome support issue: https://support.google.com/chrome/thread/2401045?hl=en
Unfortunately without a reproduction we will be unable to determine the cause of the issue.
The font is a local asset. I've mostly been trying Chrome and haven't seen it on other browsers yet - although the problem is intermittent.
I understand regarding the Chrome issue, but this has only started happening since Angular 9. So I think it's potentially a combination of the issue plus some change in the way Angular CLI/webpack is packaging the assets.
@jinder does this happen on prod, dev or both builds?
Happens on localhost (ng serve) as well as deployed server production builds. Also happening on multiple developer machines (all Windows 10 + Chrome 80).
Closing as this seems to no longer be an issue. Perhaps fixed via a dependency update or a change to Chrome.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
π Bug report
Command (mark with an
x
)Is this a regression?
Yes, was not happening in Angular 8.
Description
Since upgrading to Angular 9, I'm experiencing very strange behaviour with font loading in Chrome. Occasionally (and sadly inconsistently), the font is failing to load without error resulting in fallback to the system font.
The font will load sometimes on a refresh - even when loading a cached copy. A hard refresh will always fix the font loading, but the problem will reoccur after some time.
This has been next to impossible for me to reproduce consistently but occurs with this font: http://zavoloklom.github.io/material-design-iconic-font/
One thing I have noticed is that since Angular 9, fonts are now appearing in the Chrome Developer tools Sources panel when they never used to previously. Are there any recommendations for what I can do to get to the root cause of the issue?
π Your Environment