To make your website load quickly you need the browser to prioritize loading the most important resources first. The new fetchpriority
attribute for img
, iframe
, script
, and link
tags can help achieve this by marking the most important resources in the HTML.
What is fetchpriority
?
Browsers attempt to guess the importance of a resource when they discover it. For example, render-blocking stylesheets will be high priority, while a an asynchronous script can be loaded with a low priority.
But sometimes it's not clear to the browser how important a resource is. For example, images are loaded with low priority by default. Most of them are likely below the fold or hidden somewhere in a nested menu. But that's not always what you want, as images that represent the primary page content should be loaded quickly.
The fetchpriority
attribute solves this problem by providing the browser with additional information about the relative importance of a resource. For example, the fetchpriority
attribute lets you mark specific important images as high priority.
<img src="photo.jpg" fetchpriority="high" />
A common use case would be to increase the priority of images that trigger the Largest Contentful Paint.


Run A Free Page Speed Test
Test Your Website:
- No Login Required
- Automated Recommendations
- Google SEO Assessment
What are priority hints?
Priority hints was the previous name for the browser API implementing the fetchpriority
attribute. However, the API is now called the Fetch Priority API instead. This means developers only have to learn one term instead of two!