confs.tech
confs.tech copied to clipboard
Improve font loading
- Use
preload - self host the font
- Promise based font loading
- font-display swap
Thanks for enlighting me @magalhini!
Is this using FontFace? Can I work on this?
We are using google fonts but fore sure feel free to work on it! Thanks! 😁
Or are you talking about: https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face ? 🤔
I'm talking about this -> https://usefulangle.com/post/74/javascript-dynamic-font-loading This one looks like a promise based font loading. what do you think?
Oh I didn’t know about this. That might be interesting to have a look. Maybe there are specifics helpers for React.
@magalhini, have you ever used this?
Also considering that it doesn’t seem to be supported by IE: https://caniuse.com/#search=Fontface