# \[fetchpriority\]

> The `fetchpriority` HTML attribute provides a hint about the relative priority of fetching a resource.

## How do I use fetchpriority to speed up the LCP image?

The attribute of `<img>`, `<link>` and `<script>` elements that hints the browser how to prioritize the download. The 'high' value is often used for the hero image to improve LCP, while 'low' deprioritizes non-critical resources.

- Topic: Element Attributes
- Type: attribute
- Browser support: Chrome 101+, Chrome Android 101+, Edge 101+, Firefox 132+, Firefox Android 132+, Safari 17.2+, Safari iOS 17.2+

## Example

Wrong:

```html
<img src="hero.jpg" alt="Product photo"
  loading="lazy">
```

Right:

```html
<img src="hero.jpg" alt="Product photo"
  fetchpriority="high">
```

The LCP image is fetched early with high priority instead of being delayed.

## Common mistakes

- Setting `fetchpriority='high'` on many images, so none of them really gets priority.

## Key points

- The LCP image has `fetchpriority='high'` and is not marked `loading='lazy'`.
- Only one or two resources on the page get 'high', not every image.
- Images that are hidden at first, like later carousel slides, use 'low'.

## Interview questions

### What values does fetchpriority accept?

'high', 'low' and 'auto', which is the default.

### Can I use fetchpriority with preload?

Yes. Add it to `<link rel='preload'>` to raise or lower the priority of the preloaded resource.

### Does fetchpriority guarantee the load order?

No. It is a hint, and the browser can still decide the final order.

## Related cards

- [\[loading\]](https://wonderium.dev/html/loading-attribute.md)
- [\[rel="preload"\]](https://wonderium.dev/html/rel-preload.md)
- [LCP](https://wonderium.dev/web/lcp.md)
- [`<img>`](https://wonderium.dev/html/img.md)
- [Core Web Vitals](https://wonderium.dev/web/core-web-vitals.md)

---

- Level: [HTML](https://wonderium.dev/html.md)
- HTML version: https://wonderium.dev/html/fetchpriority
- Last updated: 2026-11-25
