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?
Material Design Icons Flicker (FOUT?)
Asked Answered
Why the down votes? –
Engird
FOUT: Flashing of Unstyled Text –
Cordon
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
See also github.com/angular/components/issues/… –
Primitive
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
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
See also github.com/angular/components/issues/… –
Primitive
© 2022 - 2024 — McMap. All rights reserved.