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

performance-resource-hints

できること

このスキルは、ページを確認し、重要なアセットや外部サービスに適したリソースヒントを追加します。主要なコンテンツを早く表示したい制作者向けです。

使う場面

  • ✓フォント、ヒーロー画像、サードパーティのサービスの読み込みを速めるようエージェントに頼むとき。
  • ✓ページがCDNや分析ツールなどの外部サービスを待ってから、コンテンツを表示しているとき。
  • ✓次のページで必要になりそうなリソースをブラウザーに伝えたいとき。

スキルのリンク

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/performance-resource-hints/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“私のページはフォントと外部APIの読み込みに長く時間がかかっています。適切なリソースヒントを追加して、速くしてください。”

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

仕組み

エージェントは、最初の表示で最も重要なリソースを特定し、重要なファイルにはpreloadを、外部のオリジンにはpreconnectかdns-prefetchを、次に見られそうなページにはprefetchを追加します。その後、DevToolsかLighthouseで効果を確認するよう勧めます。

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

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

Use resource hints for faster loading

Resource hints let the browser start fetching critical assets earlier—improving LCP by 100-300ms on average.

Quick Reference

  • Use preload for critical above-the-fold resources (fonts, hero images)
  • Use preconnect for third-party origins (CDNs, APIs, analytics)
  • Use prefetch for resources likely needed on next navigation
  • Use dns-prefetch as a lightweight alternative to preconnect

Check

Analyze resource hints on this page and verify critical resources use preload/preconnect for optimal loading.

Fix

Add appropriate resource hints (preload, prefetch, preconnect) for critical assets to improve loading performance.

Explain

Explain the differences between preload, prefetch, preconnect, and dns-prefetch and when to use each.

Code Review

Review the routes, assets, and loading behavior that affect Use resource hints for faster 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/en/rules/performance/performance-resource-hints

よくある質問

preloadとprefetchの違いは何ですか?

このスキルによると、preloadは現在のページの重要なリソース向けで、prefetchは次の移動で必要になりそうなリソース向けです。

preconnectはいつ使うべきですか?

このスキルは、CDN、API、分析ツールなどの外部オリジンに使うことを勧めています。

ページはどれくらい速くなりますか?

このスキルによると、これらのヒントは平均して、LCPを数百ミリ秒改善できることがありますが、実際の効果はページによって異なります。

詳細

作者による元の説明

Use when auditing slow page loads, heavy assets, or rendering delays related to Use resource hints for faster loading. Verify the actual bottleneck in DevTools, Lighthouse, or field data before recommending changes.

repo: thedaviddias/Front-End-Checklist

人気

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

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

0

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

コメント

  • …

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

似ているスキル