Web font loading
type: TechArticle
description: Self-host WOFF2 fonts, subset them, set font-display: swap so text is readable while the font loads, and preload the critical face only when it styles above-the-fold content.
language: en
is part of: Web Specification Studio
author: Web Specification Studio
publisher: Web Specification Studio
license: https://creativecommons.org/licenses/by/4.0/
date modified: 2026-05-29T20:27:54.000Z
citation: MDN — @font-face
  type: CreativeWork
  publisher: MDN
citation: web.dev — Best practices for fonts
  type: CreativeWork
  publisher: web.dev
citation: MDN — font-display
  type: CreativeWork
  publisher: MDN
citation: web.dev — Avoid invisible text during font loading
  type: CreativeWork
  publisher: web.dev

Web Specification Studio
type: WebSite

Web Specification Studio
type: Organization

breadcrumb
type: BreadcrumbList
item list element: Home
  type: ListItem
  position: 1
  item: https://webspecification.com/
item list element: Spec
  type: ListItem
  position: 2
  item: https://webspecification.com/spec/
item list element: Performance
  type: ListItem
  position: 3
  item: https://webspecification.com/spec/performance/
item list element: Web font loading
  type: ListItem
  position: 4
  item: https://webspecification.com/spec/performance/font-loading/