# Optimize Web Font Loading for Performance

Prevent Flash of Invisible Text (FOIT) and reduce layout shifts by using `font-display: swap` and preloading critical fonts. Deliverable includes optimized font loading strategies and implementation guidance.

**Canonical URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-font-loading-4bbf4a0e0639

**JSON URL:** https://skillshunter.net/api/public/v1/skills/github-thedaviddias-front-end-checklist-skills-font-loading-4bbf4a0e0639

**Markdown URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-font-loading-4bbf4a0e0639.md

**Instructions download URL:** https://skillshunter.net/skills/github-thedaviddias-front-end-checklist-skills-font-loading-4bbf4a0e0639/download

**Category:** Software & Development

**Source URL:** https://github.com/thedaviddias/Front-End-Checklist/blob/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e/skills/font-loading/SKILL.md

**Source commit:** e8d14d049010e2ce25afcd5e8609dfcbbe63e47e

**Listing approved at:** 2026-11-23

**Created at:** 2026-11-22T16:13:40.000000Z

**Updated at:** 2026-11-23T04:55:09.000000Z

## Catalog information

The following descriptions are catalog information. Listing approval does not mean the skill has been tested or is safe for every environment.

### Editor's note

Ensure the use of `font-display: swap` in `@font-face` declarations and preload critical fonts using `<link rel='preload'>`. Verify that modern font formats like WOFF2 are used for better compression.

### When to use it

- Fix Flash of Invisible Text (FOIT) during page load
- Improve Core Web Vitals by reducing layout shifts
- Optimize font loading for better perceived performance

## Skill instructions

---
name: font-loading
description: "Use when auditing slow page loads, heavy assets, or rendering delays related to Optimize web font loading. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes."
metadata:
  category: performance
  priority: high
  difficulty: intermediate
  estimatedTime: "15"
  source: frontendchecklist.io
  url: https://frontendchecklist.io/rules/performance/font-loading
---

# Optimize web font loading

Slow font loading can cause 'Flash of Invisible Text' (FOIT) or significant layout shifts, negatively impacting both user experience and Core Web Vitals.

## Quick Reference

- Use `font-display: swap` to prevent invisible text during load
- Preload critical fonts to discover them earlier
- Use modern formats like WOFF2 for better compression

## Check

Check font loading strategies and verify that `font-display` is used and critical fonts are preloaded.

## Fix

Add `font-display: swap` to `@font-face` declarations and use `<link rel='preload'>` for the most important fonts.

## Explain

Explain how font loading affects perceived performance and layout stability.

## Code Review

Review the routes, assets, and loading behavior that affect Optimize web font loading. Flag exact files, requests, or rendering steps that add unnecessary network, CPU, or layout cost, and describe the measurement method used to confirm the issue.

---

For full implementation details, code examples, and framework-specific guidance,
see `references/rule.md`.

Rule page: https://frontendchecklist.io/rules/performance/font-loading

