LINKDING
Login
Shared bookmarks
Sort by
Added ↑
Added ↓
Title ↑
Title ↓
Apply
Tags
zengabor/zenfonts
#javascript
#preload
#webdesign
#webfonts
|
A tiny JavaScript helper to load and pre-load web fonts that are specified via @font-face. It uses best practices from other solutions, but it's still a unique combination: It's tiny (793 bytes minimized and gzipped), so it can be easily included in every page. It can preload a font before it's used. It can solve the “invisible text” issue (WebKit-based browsers on slow network) by applying a class during font loading. It can also solve the Flash Of Unformatted Text, aka FOUT (still happens in Internet Explorer). Supports practically all browsers. Tested under the latest browser on Android, iOS, OS X, Windows, as well as under IE6+, Firefox 3.6+.
9 years ago
|
View
Shared by
ttscoff
Previous
1
Next
User
Everyone
ttscoff
Apply
Tags
-javascript
-webfonts
-webdesign
p
reload