I have noticed on my angular 2 app that in IE 11 all my material design icons will flicker the text before showing the actual icon. Is there a solution to this? Is there a way to use some sort of preloader?
Asked
Active
Viewed 2,931 times
5
-
Why the down votes? – Will Jul 14 '16 at 12:53
-
FOUT: Flashing of Unstyled Text – mwilson Feb 01 '22 at 21:04
2 Answers
3
An extremely simple way to solve this is to append display=block
to the end of the URL.
For example:
<link href="https://fonts.googleapis.com/icon?family=Material+Icons&display=block" rel="stylesheet" />
See the comment here: https://github.com/angular/components/issues/12171#issuecomment-769333603

mwilson
- 12,295
- 7
- 55
- 95
1
I was able to solve my problem by using WebFontLoader
for 'Material Icons' font. Then using CSS I was able to select and fade in all icons once they were loaded

Will
- 292
- 4
- 16
-
See also https://github.com/angular/components/issues/12171#issuecomment-595831987 – Max Barraclough Feb 19 '21 at 19:26