Dev.Lib
arrow_backBack to Blogs
LEVEL_011.7June 27, 20261 min read

Preload vs Prefetch vs Preconnect

Frontend Fundamentals

**Preload** — high-priority fetch for current navigation (fonts, LCP image, critical script).

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.

Further reading

Related concepts