Last Updated: February 25, 2016
·
1.331K
· fernandoperigolo

Loading webfonts ASAP and speedup your website

When a website is loading, your web-font is downloaded only it is necessary.

Even if you call your web-fonts at first, it will only be called when your font is used at your CSS.

But, there are a simple way to force browser to start loading your webfont ASAP.

html::before {
  content: 'Load now!'; /* I think it is necessary */
  font: 0/0 'Custom  Font'; /* Put your web font here */
}

This tip was found in https://twitter.com/mobtec talk at RSJS.