プリフェッチヒントとは?
プリフェッチヒントとは、通常は prefetch リレーションを持つ link 要素であり、将来使われる可能性の高いリソースをダウンロードするようブラウザに求めるシグナルです。ブラウザはアイドル中に低優先度でそれを取得し、キャッシュに保存します。ユーザーが後でそれを必要とするページやルートへ遷移したとき、リソースは既に利用可能です。
なぜ重要か
次に遷移しそうなルートをプリフェッチすると、コードがクリック前に届くため、ナビゲーションが瞬時に感じられます。過剰に使うと、ユーザーがたどり着かないリソースに帯域を浪費します。
関連ガイド
What Is a Preload Hint?A preload hint tells the browser to fetch a resource the current page needs at high priority early, so a crit…
What Is a Resource Hint?A resource hint is a browser directive such as preconnect, dns-prefetch, preload, or prefetch that helps the…
What Is a Dynamic Import Boundary?A dynamic import boundary is the point where a module is loaded lazily with an import call, marking where a b…