Adds a fetchpriority hint for the primary content image on the page to load faster.
Author: | WordPress Performance Team (profile at wordpress.org) |
WordPress version required: | 6.1 |
WordPress version tested: | 6.3.1 |
Plugin version: | 1.1.1 |
Added to WordPress repository: | 05-05-2023 |
Last updated: | 18-09-2023 |
Rating, %: | 0 |
Rated by: | 0 |
Plugin URI: | https://github.com/WordPress/performance/tree... |
Total downloads: | 1 973 |
Active installs: | 40+ |
Click to start download |
This plugin adds the fetchpriority="high"
attribute to the image that is most likely the LCP image for the current response, improving LCP performance by telling the browser to prioritize that image. The LCP image detection directly relies on the existing WordPress core heuristics that determine whether to not lazy-load an image. The only difference is that, while multiple images may not be lazy-loaded, only a single image will be annotated with fetchpriority="high"
.
FAQ
ChangeLog