Skip to content

Font Preload: Check Whether the Browser Reuses the Request

Diagnose duplicate font requests by comparing the preload and CSS URL and CORS mode. Follow a controlled Chrome test with one WOFF2 file.

Dark letterpress blocks above a printed lowercase a
Jack Lee
2 Min Read
Share
On This Page

Network shows two requests for the same WOFF2 file. A preload might be fetching the font in a different mode from CSS, even if both entries have the same URL.

Match the preload to the font CSS actually uses

Font requests made by CSS use anonymous CORS. Use crossorigin="anonymous" for the font preload, including when the file is on the same origin. Match the resolved URL, including its query string.

<link rel="preload" href="/sample.woff2"
      as="font" type="font/woff2" crossorigin="anonymous">

Check the face, weight and language subset the visible text uses. A preload fetches a resource. The matching @font-face rule makes the font available to CSS.

Compare actual requests in Chrome

We opened three loopback pages in separate fresh Chrome 157 profiles. Every case used the same WOFF2 bytes and a heading styled with that font. The server logged each font request.

Preload and CSS setupFont GETsServer observation
Same URL, anonymous CORS1One cors request for /sample.woff2.
Same URL, missing crossorigin2no-cors for preload, cors for CSS.
Anonymous CORS, CSS adds a query parameter2The preload requested /sample.woff2 and CSS requested /sample.woff2?v=2.

The browser reported the font loaded in all three cases. The measured result is the number and mode of requests seen by the local server.

Check your page with a cold load

  1. Open Network before reloading with the cache disabled. Filter by the font filename and read the full URL and initiator.
  2. For the same URL, compare the request modes in the headers. For different URLs, check the path and version, then make the preload follow the file CSS actually uses.
  3. Reload after the change. Check that the expected face loaded and that only the needed request transferred bytes. If the headline still shifts, separately check font fallback and wrapping.

Frequently asked questions

Do same-origin font preloads need crossorigin?

Yes, use crossorigin="anonymous" to match the CSS font request’s CORS mode.

Should I preload every font weight?

Choose the files necessary for visible content on that page. An unused preload competes with useful downloads.

Does one request mean the page now loads faster?

One transfer confirms reuse in the controlled test. Measure the page separately with a loading timeline before claiming a faster LCP.

Share This Article