本文へスキップ
Skillpedia
WebサイトとUI(フロントエンド)75k · #2853

font-loading

できること

このスキルは、ウェブサイトがカスタムフォントを読み込む方法を確認します。テキストが速く表示され、位置がずれないようにしたい開発者向けです。

使う場面

  • ✓カスタムフォントが読み込まれる間、テキストが一瞬見えないとき。
  • ✓フォントがようやく表示された後に、ページのレイアウトがずれるとき。
  • ✓ページのスコアが Core Web Vitals で低いとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/font-loading/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/font-loading/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“ページを読み込むと、テキストが一秒ほど見えないのはなぜですか。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、font-display の設定と、主要なフォントがプリロードされているかを確認します。font-display: swap を提案し、最も重要なフォントファイルにはプリロードを提案します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

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

よくある質問

Flash of Invisible Text とは何ですか?

ウェブフォントのダウンロード中にテキストが隠されたままになることで、このスキルが防ぎたいものです。

font-display: swap は何をしますか?

カスタムフォントが届くまで、代わりのフォントでテキストを先に表示し、その後で切り替えます。

どのフォントの形式を提案していますか?

圧縮効率が良いため、WOFF2 を提案しています。

詳細

作者による元の説明

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.

repo: thedaviddias/Front-End-Checklist

人気

GitHubのスター
75k
ランキング
#2853
ライセンス
MIT
更新日
2026/10/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル