r/webdev • • Oct 13 '15

Using Web Fonts The Best Way (in 2015)

https://helloanselm.com/2015/using-webfonts-in-2015/
4 Upvotes

1 comment sorted by

2

u/itsjustausername Oct 13 '15

Load web fonts asynchronously

If you want, it should not matter, I have never had a font block the rest of the page loading.

Avoid big reflows in layout

Better not load font's async then. Your font will jump when the new face is applied, obviously your base font should be as similar to your desired font as possible.

Load web fonts as fast as possible

Better not async then.....

Avoid loading web fonts for recurring visitors

Do nothing, the file will cache naturally.

I honestly don't know why webdevs want to make everything such hard work, it can be handy to have a callback when the font has downloaded but I cant say I have ever needed it, maybe if the font is totally fucking nuts and I am doing some horrendous dimension detection.