Summary
Preload — high-priority fetch for current navigation (fonts, LCP image, critical script). Prefetch — low-priority fetch for likely future navigation. Preconnect — early DNS+TLS to origin (CDN, API) without fetching a specific resource. Misusing preload competes with LCP; prefetch on wrong routes wastes bandwidth.
Code example
<link rel="preconnect" href="https://cdn.example.com" crossorigin />
<link rel="preload" href="/font.woff2" as="font" type="font/woff2" crossorigin />
<link rel="prefetch" href="/next-page.js" as="script" />
Key points
- Preload — high-priority fetch for current navigation (fonts, LCP image, critical script).
- Prefetch — low-priority fetch for likely future navigation.
- Preconnect — early DNS+TLS to origin (CDN, API) without fetching a specific resource.
- Misusing preload competes with LCP; prefetch on wrong routes wastes bandwidth.