5

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?

Will
  • 292
  • 4
  • 16

2 Answers2

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