Home HTML Attributes fetchpriority HTML fetchpriority Attribute Definition
Definition and Usage The fetchpriority attribute hints the relative priority of a fetch for <img> , <link> , and <script> . Values are high, low, and auto (default).
Boost the LCP / hero image with fetchpriority="high" (and keep it eager). Mark decorative or late images low. Do not mark everything high — that defeats prioritization.
Hint for the network stack. Browsers already prioritize; fetchpriority lets you correct known cases like the LCP image.
Not a substitute for preload. Critical fonts/CSS may still need <link rel="preload">. Use fetchpriority to refine, not replace, a solid loading strategy.
Syntax
HTML Syntax <img|link|script fetchpriority ="high |low |auto ">
Default is auto. Especially useful on the LCP img and selected preloads.
Values
Attribute Values Value Description Try it highHigher relative fetch priority Try itlowLower relative fetch priority Try itautoBrowser default priority Try it
Try it
Live Preview Set fetchpriority on a sample image. Priority is best observed in the Network panel.
Code
HTML Examples 1. high (LCP) 2. low 3. link / script Example 1 — Prioritize the Hero Image Mark the LCP candidate high and keep it eager.
<img src="/images/hero.webp" alt="Product hero"
width="1200" height="630" loading="eager" fetchpriority="high"> fetchpriority="high" on a critical image.
How It Works Identify the LCP image (usually the hero).Set fetchpriority="high" on that img.Keep loading eager (do not lazy the hero).Avoid marking many resources high .Example 2 — Deprioritize Late Images Lower priority for non-critical below-the-fold media.
<img src="/images/footer-badge.webp" alt=""
width="120" height="40" loading="lazy" fetchpriority="low"> fetchpriority="low" for non-critical media.
How It Works Use low for decorative or late images.Combine with lazy when offscreen.Empty alt only when purely decorative.Leave primary content at auto/high .Example 3 — Priority on link and script fetchpriority also applies to selected link and script fetches.
<link rel="preload" as="image" href="/images/hero.webp" fetchpriority="high">
<script src="/js/analytics.js" defer fetchpriority="low"></script> See Try It Yourself for a preload + low-priority script sketch.
How It Works Preload + high can reinforce a critical image.Low on analytics keeps it out of the way.defer/async still matter for script execution.Measure in Lighthouse / DevTools . Edge Cases & Pitfalls Priority inflation makes every request “important” — be selective.
lcp One hero, not ten Only the true LCP candidate usually needs high.
lazy Do not lazy + high Lazy heroes fight themselves; keep LCP eager + high.
hint Still a hint The browser may override based on its own heuristics.
preload Coordinate with preload Duplicate competing hints can confuse prioritization — keep one clear strategy.
Compatibility
Browser Support fetchpriority is an HTML attribute for browsers. It is not a Node.js, Deno, or Bun API.
✓ Widely available · modern
fetchpriority Supported in current Chromium, Firefox, and Safari for prioritizing fetches.
90% Global support (approx.)
Google Chrome 101+
Full support
Mozilla Firefox 128+
Full support
Apple Safari 17.2+
Full support
Microsoft Edge 101+
Full support
Opera 87+
Full support
Samsung Internet 19+
Full support
Internet Explorer No support
Not supported fetchpriority Modern browsers
Bottom line: Boost the LCP image with high; demote noise with low; leave the rest auto.
Remember
Key Takeaways Values: high, low, auto.
Best use: LCP img with high + eager.
Elements: img, link, script.
Be selective: not everything can be high.
One line: fetchpriority="high" boosts critical fetches like your LCP image.
Frequently Asked Questions What does fetchpriority do? It hints whether a fetch for an img, link, or script should be relatively high, low, or auto priority.
When should I use high? Most often on the LCP / hero image (with loading eager). Avoid marking many resources high.
When should I use low? For non-critical images or late scripts (for example analytics) that should yield to important content.
Is auto the default? Yes. Omitting fetchpriority is like auto — the browser decides.
Does it replace preload? No. Preload still discovers critical resources early; fetchpriority refines priority.
Which elements support it? Commonly img, link, and script in modern browsers.
Next: for Associate labels with form controls using the for attribute.
for tutorial → CODETOFUN NEWS
Stay Ahead in Tech Get the latest IT news, programming updates, and technology trends directly on your phone.
About the author Developer, cloud engineer, and technical writer
I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.
8 people found this page helpful
Helpful Share Copy link Suggestion