Types of Resource Hints
- preload - High priority, needed for current page
- prefetch - Low priority, needed for future navigation
- preconnect - Establish early connections to origins
- dns-prefetch - DNS lookup only, lighter than preconnect
When to Use Each Hint
1
Preload LCP Resources
Preload your LCP image and critical fonts that aren't discovered early in HTML.
2
Preconnect to Critical Origins
Preconnect to domains where you'll fetch resources soon, like CDNs and API servers.
3
Prefetch Next Page Resources
If you can predict user navigation, prefetch resources for the likely next page.