| 开发者 | gunjanjaswal |
|---|---|
| 更新时间 | 2026年5月21日 18:39 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
fetchpriority="high" attribute to featured images on your WordPress site. This helps browsers prioritize the loading of these important images, improving your site's performance and Core Web Vitals scores.
Key Features
fetchpriority="high" to the hero / featured imagefetchpriority="low" for below-fold images — paired complement that tells the browser to defer non-critical loads<link rel="preload" as="image"> for the hero featured image on singular pages — strongest LCP signal.avif / .webp file exists on disk, an extra <link rel="preload" type="image/avif|image/webp"> is emitted so the browser picks the supported modern format automatically (works with ShortPixel, Imagify, Optimole, and similar)avatar / gravatar or hosted on gravatar.comhigh)the_post_thumbnail() / wp_get_attachment_image()fetchpriority attribute is a modern web standard that tells browsers which images should be prioritized during page load. By marking featured images as high priority, you can improve:
fetchpriority-featured-image folder to the /wp-content/plugins/ directoryNo, this plugin only adds an HTML attribute to the image tag. It doesn't modify your actual image files or database entries.
Yes! This plugin works with any theme that uses WordPress's standard featured image functions. It also includes specific support for popular page builders like Divi and Elementor that use custom image rendering methods.
No, the plugin works automatically once activated with sensible defaults. Optional fine-tuning is available under Settings → FetchPriority (contexts, first-N posts on archives, preload, debug badge).
No, the plugin adds minimal overhead and should actually improve your site's performance by helping browsers prioritize important images.
You can view the HTML source of your pages and look for fetchpriority="high" in the featured image HTML.
<link rel="preload" as="image" fetchpriority="high"> for the featured image on singular pages (strongest LCP signal).<link rel="preload" type="image/avif|webp"> tags are emitted; browsers pick the supported variant automatically.fetchpriority="low" for below-fold images (opt-in) as a paired complement to the hero high tag.high.preg_replace_callback walk so the high/low budget is honored across all images in the content, not only the first.template_redirect.wp_get_attachment_image_attributes filter for broader compatibility