Font Converter

Preload & Preconnect Fonts

Use resource hints to prioritize font loading. Master preload, preconnect, prefetch, and dns-prefetch for faster font delivery.

Key Takeaways

  • preload: Download font immediately. Use for critical above-fold fonts
  • preconnect: Establish early connection to font CDN
  • prefetch: Download font for next page navigation
  • • Only preload 1-2 fonts to avoid competing with other resources

rel="preload" for Fonts

Preload tells the browser to download a resource immediately with high priority. Use it for fonts that are critical to render above-the-fold content. Always preload fonts in WOFF2 format since it provides the smallest file size and is supported by all modern browsers, keeping the preload payload as small as possible. After the initial visit, browsers rely on the cache rather than preloading again, so pairing preload with proper font caching strategies is essential for good repeat-visit performance.

Correct Preload Syntax

<link rel="preload"
      href="/fonts/custom.woff2"
      as="font"
      type="font/woff2"
      crossorigin>

as="font": Required. Tells browser this is a font.

type="font/woff2": Recommended. Helps browser decide if usable.

crossorigin: Required. Fonts always require CORS.

Common Mistakes

  • • Missing crossorigin: font fetched twice
  • • Preloading too many fonts: competes with other resources
  • • Mismatched URL between preload and @font-face

rel="preconnect" for CDNs

Preconnect establishes an early connection to a third-party origin. Use when loading fonts from external CDNs. When using a third-party font CDN, also review the font embedding restrictions guide to confirm that loading fonts from a CDN on your domain is permitted under the font's license. For a complete walkthrough of configuring a CDN origin for fonts, including CORS headers and cache rules, see the CDN font setup workflow guide.

<!-- For Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

<!-- For your CDN -->
<link rel="preconnect" href="https://cdn.example.com" crossorigin>

Connection Savings

Preconnect saves DNS (~50ms) + TCP (~100ms) + TLS (~100ms) = up to 250ms.

Comparison Table

HintWhat It DoesWhen to Use
preloadDownloads immediatelyCritical fonts
preconnectEstablishes connectionExternal font CDNs
dns-prefetchDNS lookup onlyFallback for preconnect
prefetchLow priority downloadFonts for next page

Optimize Your Fonts

Convert to WOFF2 and subset to minimize preload payload size.

Subset Your Fonts
Sarah Mitchell

Written & Verified by

Sarah Mitchell

Typography expert specializing in font design, web typography, and accessibility

Preload & Preconnect FAQs

Common questions about font resource hints