TL;DR: Fetch Priority gives the browser a small but useful signal about which resources matter most to the current page. Use fetchpriority="high" for the image that is genuinely likely to become the Largest Contentful Paint (LCP) element, and fetchpriority="low" for non-critical work that competes with it. It is not a substitute for a good loading strategy: measure first, keep the critical path short, and treat the hint as a narrowly targeted adjustment.
Performance work often starts with a familiar frustration: the browser has discovered the important image, font, or request, yet something less valuable still gets bandwidth and attention at the wrong moment. Modern browsers make sensible choices by default, but they cannot know the business importance of every resource. The Fetch Priority API is a standards-based way to add that missing context without building a JavaScript scheduler.
This matters because the page’s most visible content is increasingly image-led. A product hero, editorial cover, or dashboard preview can dominate perceived speed even when the rest of the markup arrives quickly. Used carefully, fetchpriority helps make the browser’s existing prioritisation model work with the page’s actual UX goal.
Table of contents
- What does Fetch Priority do?
- Which resources deserve high priority?
- How should you use fetchpriority on images?
- Can Fetch Priority improve LCP?
- Where does preload fit?
- How do you test it safely?
- FAQ
What does Fetch Priority do?
Fetch Priority is a hint exposed as the fetchpriority attribute on elements such as img, link, and script, and as the priority option on fetch(). Its values are high, low, and auto. auto is the default: the browser applies its normal heuristics. high and low ask it to bias the relative priority of that request.
The important word is relative. The hint does not create a new network lane, override every browser safeguard, or guarantee a fixed download order. It lets a page author express intent where the browser has incomplete information. The HTML specification’s Fetch Priority section defines the API as a priority signal; browser scheduling still decides what is safe and useful.
That distinction prevents two common mistakes:
- Treating
highas a performance badge to put everywhere. - Expecting a priority hint to fix discovery delays, enormous image files, slow server responses, or render-blocking CSS.
If an image is discovered too late, make it discoverable earlier. If it is too large, send a better image. If it is genuinely central to the first screen, then priority is worth testing.
Which resources deserve high priority?
Most pages should have very few high-priority candidates—often one. The strongest candidate is the hero image that users actually see above the fold and that appears in the LCP report. An inline <img> is usually the cleanest case because the browser can discover it while parsing the document.
Good candidates include:
- The primary product or article image rendered in the initial viewport.
- A responsive image whose selected source is the visual centre of the first screen.
- A font file only after profiling proves it is on the critical rendering path and cannot be handled better with
font-display, subsetting, or a system fallback.
Poor candidates include below-the-fold card images, every JavaScript chunk, tracking tags, an entire gallery, and requests made after an interaction. Giving many resources the same elevated priority dilutes the signal and can starve CSS, fonts, or the one image the user needs first.
The broader lesson is to give the browser precise intent at a specific decision point. It is also consistent with the cancellation discipline behind AbortSignal.any(): a page gets faster when work is deliberately scoped, not merely added.
How should you use fetchpriority on images?
Start with the actual LCP image and write ordinary, resilient image markup. The attribute is progressive enhancement: browsers that do not use the hint can still load the image normally.
<img
src="/images/solar-inverter-1600.webp"
srcset="/images/solar-inverter-800.webp 800w,
/images/solar-inverter-1200.webp 1200w,
/images/solar-inverter-1600.webp 1600w"
sizes="(max-width: 720px) 100vw, 60vw"
width="1600"
height="900"
alt="Solar inverter installed beside a home battery"
fetchpriority="high"
>This works best when the image is in the initial HTML and its dimensions are known. width and height reserve layout space; srcset and sizes avoid sending desktop pixels to a small screen; fetchpriority tells the browser that the selected candidate is unusually important. Each solves a different problem.
In React and Next.js, make sure the rendered HTML gets the attribute. A component wrapper can be a source of accidental regressions, especially when a design system silently applies loading="lazy" to every image. A hero image should not be lazy-loaded just because it happens to use the same component as a card thumbnail.
export function ProductHero() {
return (
<img
src="/hero.avif"
width={1600}
height={900}
alt="Product dashboard showing live energy data"
fetchPriority="high"
/>
);
}React’s camel-cased fetchPriority becomes the HTML fetchpriority attribute. Check the production output, not only a local component story. This is one reason the Next.js observability work that starts before hydration is valuable: the initial document and network waterfall are where this decision pays off.
Can Fetch Priority improve LCP?
It can improve LCP when resource contention is the bottleneck and the marked image is truly the eventual LCP element. The web.dev guide to Fetch Priority shows the API’s purpose clearly: influence which resources the browser fetches earlier or later when its default priority cannot infer author intent.
But LCP has several phases: time to first byte, resource discovery, request start, download, and rendering. fetchpriority primarily helps with scheduling after discovery. It cannot compensate for a slow origin or an image hidden by client-side rendering.
Use the LCP breakdown in Chrome DevTools or your real-user monitoring data to identify the phase that is actually long:
- Long discovery delay: put the hero in server-rendered HTML, or preload it if it cannot be discovered early.
- Long queueing or start delay: test
fetchpriority="high"on the one confirmed LCP image. - Long transfer: resize, compress, cache, or serve a more appropriate format.
- Long render delay: investigate CSS, fonts, JavaScript, and hydration rather than adding more network hints.
This layered diagnosis is more useful than copying a snippet from a performance checklist. It also fits the philosophy behind scheduler.postTask(): priority is most powerful when it is applied to the real bottleneck, not treated as a universal accelerator.
Where does preload fit?
Preload and Fetch Priority solve adjacent but different problems. Preload says, “discover this resource now.” Fetch Priority says, “when scheduling this request, this relative importance is intentional.” They can be used together for a late-discovered hero image, but neither should be added automatically.
For example, a hero injected only after JavaScript is a discovery problem. A server-rendered preload can expose it sooner:
<link
rel="preload"
as="image"
href="/images/hero-1600.webp"
imagesrcset="/images/hero-800.webp 800w,
/images/hero-1200.webp 1200w,
/images/hero-1600.webp 1600w"
imagesizes="100vw"
fetchpriority="high"
>Then ensure the page uses the same resource selection rules. Mismatched preload URLs, formats, or srcset values can create duplicate downloads—the opposite of the intended result. The MDN Fetch API reference and browser network tooling are useful companions here because the final result is observable: one request, an earlier start, and an improved user metric.
Preload only what you can defend in a waterfall. A page with six preloads is often a page that has stopped prioritising.
How do you test it safely?
Treat Fetch Priority as an experiment with a hypothesis: “The largest contentful image starts late because lower-value requests contend with it.” Then change one resource and compare.
- Capture a baseline on representative mobile and desktop paths, preferably with real-user LCP data as well as lab runs.
- Confirm the target resource is the LCP element on enough visits to matter.
- Add
fetchpriority="high"to that image only; avoid changing image encoding, JavaScript, and markup at the same time. - Inspect the network waterfall for earlier scheduling and check whether CSS, fonts, or other critical requests regressed.
- Roll the change out gradually and keep it only if the percentile that matters improves.
Look beyond a single Lighthouse score. A great local run can hide cache effects, regional latency, or a different viewport from real traffic. Also revisit the hint after a design change: an A/B test, personalisation rule, or responsive redesign can turn yesterday’s hero into today’s below-the-fold asset.
The practical rule: use one strong hint, not many weak ones
Fetch Priority is a welcome addition to the web platform because it gives developers an escape hatch without requiring an application-level loading manager. Its strength is restraint. One accurately marked LCP image can be meaningful; ten “high” requests create a new contention problem.
Keep the page’s default loading behaviour healthy first: semantic server-rendered markup, responsive images, small critical CSS, sensible lazy loading, and a tight JavaScript budget. Then use this API to make an explicit, measured correction where browser heuristics lack context. That is the same pragmatic browser-first approach that makes native URL matching and back/forward cache worthwhile: less custom machinery, more targeted platform capability.
FAQ
Does fetchpriority guarantee that an image loads first?
No. It is a relative hint, not a command. The browser still manages network limits, rendering dependencies, cache state, and other requests.
Should every above-the-fold image use fetchpriority="high"?
No. In most designs, only the image most likely to be the LCP element deserves it. Multiple high-priority images can compete with each other and critical page resources.
Is fetchpriority the same as preload?
No. Preload improves discovery; Fetch Priority adjusts relative scheduling. Use preload for a resource the parser will discover late, and use Fetch Priority when you need to express importance.
Can I use Fetch Priority with JavaScript fetch requests?
Yes. The Fetch API supports a priority option in implementations that expose it, but support and effect should be validated in the browsers your users actually use. For static page assets, declarative markup is usually easier to audit.