Skip to content
Search

CSS:@font-face

lastmod 2023-07-08created 2021-07-1017 edits

Performance Tunning

Web font loading speed optimization, etc... In summary:

  • &display=swap is the default
  • Connect to the font address in advance with preconnect
  • Prioritized asynchronous CSS fetch with preload
  • Add media="print" onload="this.media='all'"
  • Include noscript handling
  • Apply src order and use local
  • Split files using unicode-range

Preload vs Prefetch vs Priorities

When should you use what?

<link rel="preload">
Preload resources you are confident will be used on the current page.
<link rel="prefetch">
Prefetch resources you think will be used across multiple future navigation boundaries.

See also

Favorite site

References


  1. Web_font_usage_and_optimization_trends_-_NAVER_D2.pdf ↩

author Zer0 sitemap