Check preload, modulepreload, prefetch and preconnect against the requests they must match, and find the hints that cost a download rather than save one.
Waiting for markup
Checks each hint against the request it is meant to match, which is where these go wrong.
Nothing to inspect yet
Paste a head, or load the example to see a font preload that makes the font download twice.
Resource Hint Inspector runs entirely on your device — the markup is parsed in your browser, never executed, and none of the URLs in it are requested.
You’re on the Free plan. Compare plans
A `preload` is not a note to the browser that something will be wanted later. It is a request, issued immediately, whose response waits in the preload cache for a matching request to claim it. The match is on four things: URL, destination, CORS mode and credentials.
Miss any one of them and the response is never claimed. The browser makes a second request, the file arrives twice, and a hint meant to save a download has spent one at high priority instead.
`<link rel="preload" as="font" href="…">` without `crossorigin` is exactly that mistake, and it is written by people trying to make a page faster. Fonts are always fetched in CORS mode, so the preload and the real request are different requests. The font downloads twice and the preload delays the one that matters.
The same shape accounts for most of the rest: a preload with no `as` has no destination to match on, a module script is always CORS even same-origin, and `fetchpriority="low"` on a preloaded image cancels the thing the preload was for.
This reads markup, so it cannot tell you whether a resource deserves a hint — that needs a trace. It tells you whether the hints you have will do anything, which is a different question and one you can answer before deploying.
Fonts are fetched in CORS mode whatever their origin. A preload without crossorigin is a no-CORS request, and CORS mode is part of what the browser matches on, so the two are different requests. The preloaded copy is never used and the font downloads twice. A bare crossorigin attribute is enough.
More than about four is usually slower than none. Each one opens a socket and performs a TLS handshake whether or not the page uses it, and they compete with real requests for bandwidth and CPU. Keep the origins on the critical path.
Then it is probably requested by script or by a stylesheet this tool was not given, and the finding is a prompt to check rather than an instruction to delete. Inline url() values in a style block are counted; an external stylesheet's contents cannot be.
preload says this navigation needs it now, at high priority. prefetch says a future navigation might want it, at the lowest priority. Setting both for one URL produces two requests at different priorities for the same file.
No. It is parsed in your browser and never executed, and none of the URLs in it are requested.
If a tool here saved you some time, you can put something towards the hosting.Buy me a coffee, on Ko-fi, opens in a new tab