/web-development-tools:font-loading-stingerfrom web-development-tools
Fixes web font loading performance issues including FOIT, FOUT, CLS, and slow font loads. Covers font-display decisions, preload strategies, variable font subsetting, Next.js font config, and metric-matched fallbacks.
Ships in web-development-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Start with README.md for the workflow map and detailed references.
You are font-loading-wasp-drone's arsenal. Your job is to encode the 2026 production-consensus patterns for web font loading performance so the Drone can audit, implement, and advise with precision rather than approximation.
Read SKILL.md first. Then open the specific guide that matches the task. When the task spans multiple guides, read them in order.
| Presenting symptom or request | Primary guide |
|---|---|
"What font-display value should I use?" | guides/01-font-display-decision-matrix.md |
| "Invisible text on first load" (FOIT) | guides/00-principles.md + guides/01-font-display-decision-matrix.md |
| "Text shifts when font loads" (FOUT + CLS) | guides/01-font-display-decision-matrix.md + guides/05-cls-elimination.md |
| "Font loads slowly" / "font is blocking render" | guides/02-preload-strategy.md |
| "Variable font file is too large" | guides/03-variable-font-subsetting.md |
| "next/font config" / "App Router fonts" | guides/04-nextjs-font.md |
| "CLS from font swap" / "layout shift after font loads" | guides/05-cls-elimination.md |
| "Font performance checklist" / "audit font setup" | guides/06-performance-checklist.md |
| Full audit | All guides in order; see examples/full-audit.md |
| Next.js Inter setup from scratch | guides/04-nextjs-font.md + examples/happy-path-nextjs-inter.md |
| Self-hosted variable font from scratch | guides/03-variable-font-subsetting.md + examples/edge-case-self-hosted-variable.md |
These are non-negotiable. Full rationale in each guide.
font-display on every @font-face rule. Browser defaults differ across Chrome, Safari, and Firefox; omitting it produces non-deterministic FOIT/FOUT/FOFT behaviour.font-display: swap without also implementing metric-matched fallback overrides. swap trades FOIT for FOUT-with-CLS; the CLS is only eliminated when fallback metrics (size-adjust, ascent-override) match the web font.crossorigin="anonymous" to <link rel="preload" as="font">. Font fetches are CORS requests; omitting crossorigin causes a double-fetch and the preload is wasted.next/font App Router API from Pages Router API before generating code. Import path, options object shape, and where className/variable is applied differ significantly; mixing them causes runtime errors.font-loading-wasp-drone is the loading mechanics layer. Stay in-lane:
typography-font-wasp-drone)seo-aeo-wasp-drone)glyphhanger in build jobs (devops-wasp-drone)When a request crosses into a peer domain, complete the font-loading portion and then name the peer Drone explicitly.
Read the guides in this order for a full-scope audit:
guides/00-principles.md: FOIT/FOUT/FOFT taxonomy, font-display period model, browser defaultsguides/01-font-display-decision-matrix.md: when to use swap/optional/fallback/block/autoguides/02-preload-strategy.md: preload hints, crossorigin, over-preloading anti-patternguides/03-variable-font-subsetting.md: pyftsubset, glyphhanger, subfont, unicode-rangeguides/04-nextjs-font.md: next/font App Router vs Pages Router, fonts.ts patternsguides/05-cls-elimination.md: size-adjust, ascent-override, fontpie, capsizefitterguides/06-performance-checklist.md: 2026 targets: payload, preloads, CLS, zero double-fetchesExamples:
examples/happy-path-nextjs-inter.md: Next.js 15 + Inter variable + zero CLS (most common pattern)examples/edge-case-self-hosted-variable.md: paid font self-hosted with pyftsubset + metric overrideTemplates:
templates/font-face-block.md: canonical @font-face template with all required descriptorstemplates/preload-link.md: correct <link rel="preload"> markuptemplates/nextfont-config.ts.md: app/fonts.ts starter templatesResearch trail:
research/research-summary.md: executive summary from scripture-historianresearch/research-plan.md (source-repository research, not shipped with the plugin): depth tier, queries, page budgetREADME.md (opens in a new tab)examples/edge-case-self-hosted-variable.md (opens in a new tab)examples/happy-path-nextjs-inter.md (opens in a new tab)guides/00-principles.md (opens in a new tab)guides/01-font-display-decision-matrix.md (opens in a new tab)guides/02-preload-strategy.md (opens in a new tab)guides/03-variable-font-subsetting.md (opens in a new tab)guides/04-nextjs-font.md (opens in a new tab)guides/05-cls-elimination.md (opens in a new tab)guides/06-performance-checklist.md (opens in a new tab)reports/README.md (opens in a new tab)research/research-summary.md (opens in a new tab)templates/font-face-block.md (opens in a new tab)templates/nextfont-config.ts.md (opens in a new tab)templates/preload-link.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
font-loading, web-performance, cls, foit, fout, font-subsetting
npx claudepluginhub legioncodeinc/vibe-coding-tools --plugin web-development-tools42 skills in this plugin
/asset-stingerMaintain the Universal Asset Registry. Use to register assets, audit code-to-registry drift, or generate migrations. Read README.md for the guide map./component-vendoring-stingerSelect existing UI components and prepare notice-preserving source-copy plans. Use for component reuse, exact MIT artifact provenance, authorized copies, or local fork updates./csv-xlsx-import-export-stingerImplement spreadsheet import and export in React. Use for CSV/XLSX parsing, mapping, row validation, streaming, or CSV injection. Read README.md for the guide map.Other plugins' skills for the same job