{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-font-loading-4bbf4a0e0639","title":"Optimize Web Font Loading for Performance","summary":"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.","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","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-font-loading-4bbf4a0e0639\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_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.","instructions":"---\nname: font-loading\ndescription: \"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.\"\nmetadata:\n  category: performance\n  priority: high\n  difficulty: intermediate\n  estimatedTime: \"15\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/performance\/font-loading\n---\n\n# Optimize web font loading\n\nSlow font loading can cause 'Flash of Invisible Text' (FOIT) or significant layout shifts, negatively impacting both user experience and Core Web Vitals.\n\n## Quick Reference\n\n- Use `font-display: swap` to prevent invisible text during load\n- Preload critical fonts to discover them earlier\n- Use modern formats like WOFF2 for better compression\n\n## Check\n\nCheck font loading strategies and verify that `font-display` is used and critical fonts are preloaded.\n\n## Fix\n\nAdd `font-display: swap` to `@font-face` declarations and use `<link rel='preload'>` for the most important fonts.\n\n## Explain\n\nExplain how font loading affects perceived performance and layout stability.\n\n## Code Review\n\nReview 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.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/performance\/font-loading\n","use_cases":["Fix Flash of Invisible Text (FOIT) during page load","Improve Core Web Vitals by reducing layout shifts","Optimize font loading for better perceived performance"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/font-loading\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T16:13:40.000000Z","updated_at":"2026-11-23T04:55:09.000000Z","seo_title":"Optimize web font loading for performance","seo_description":"Improve page load speed and user experience by optimizing how web fonts are loaded. Use font-display: swap and preload critical fonts.","seo_keywords":["optimize web font loading","font-display swap","preload critical fonts","improve core web vitals","reduce layout shifts"]}}