How to avoid Flash of Unstyled Text (FOUT) even with Web Font Loader?

后端 未结 3 1428
慢半拍i
慢半拍i 2021-01-13 02:02

I\'m using a custom font which is large ~100kb. As you can imagine, the browser text is flashing from invisible to visible text. I therefore started using the webfontloader:

3条回答
  •  不思量自难忘°
    2021-01-13 02:52

    Consider experimenting with the Web Font Loader library which provides an event system that allows you to control the appearance of your page dynamically as fonts are loaded.

    Here

提交回复
热议问题