Should I Use JavaScript to Load My Web Fonts?

Read Should I Use JavaScript to Load My Web Fonts? on the Filament Group Lab.

When they were first introduced, web fonts were primarily a CSS feature, and for many web developers they’ve always loaded them using CSS (and nothing more). But in the …


This content originally appeared on Zach Leatherman and was authored by Zach Leatherman

Read Should I Use JavaScript to Load My Web Fonts? on the Filament Group Lab.

When they were first introduced, web fonts were primarily a CSS feature, and for many web developers they’ve always loaded them using CSS (and nothing more). But in the last decade, default web font loading behavior in many browsers made CSS-only methods a gamble with our page’s text render, and thoughtful developers switched to safer JavaScript methods. Recently, browser support for new and safer CSS-only strategies have left some developers wondering: are JavaScript methods to load web fonts necessary? Are they useful? Let’s dig in.


This content originally appeared on Zach Leatherman and was authored by Zach Leatherman


Print Share Comment Cite Upload Translate
APA
Zach Leatherman | Sciencx (2022-12-08T05:40:53+00:00) » Should I Use JavaScript to Load My Web Fonts?. Retrieved from https://www.scien.cx/2018/11/30/should-i-use-javascript-to-load-my-web-fonts/.
MLA
" » Should I Use JavaScript to Load My Web Fonts?." Zach Leatherman | Sciencx - Friday November 30, 2018, https://www.scien.cx/2018/11/30/should-i-use-javascript-to-load-my-web-fonts/
HARVARD
Zach Leatherman | Sciencx Friday November 30, 2018 » Should I Use JavaScript to Load My Web Fonts?., viewed 2022-12-08T05:40:53+00:00,<https://www.scien.cx/2018/11/30/should-i-use-javascript-to-load-my-web-fonts/>
VANCOUVER
Zach Leatherman | Sciencx - » Should I Use JavaScript to Load My Web Fonts?. [Internet]. [Accessed 2022-12-08T05:40:53+00:00]. Available from: https://www.scien.cx/2018/11/30/should-i-use-javascript-to-load-my-web-fonts/
CHICAGO
" » Should I Use JavaScript to Load My Web Fonts?." Zach Leatherman | Sciencx - Accessed 2022-12-08T05:40:53+00:00. https://www.scien.cx/2018/11/30/should-i-use-javascript-to-load-my-web-fonts/
IEEE
" » Should I Use JavaScript to Load My Web Fonts?." Zach Leatherman | Sciencx [Online]. Available: https://www.scien.cx/2018/11/30/should-i-use-javascript-to-load-my-web-fonts/. [Accessed: 2022-12-08T05:40:53+00:00]
rf:citation
» Should I Use JavaScript to Load My Web Fonts? | Zach Leatherman | Sciencx | https://www.scien.cx/2018/11/30/should-i-use-javascript-to-load-my-web-fonts/ | 2022-12-08T05:40:53+00:00
https://github.com/addpipe/simple-recorderjs-demo