| 开发者 | gunjanjaswal |
|---|---|
| 更新时间 | 2026年6月29日 02:43 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
fetchpriority="high" plus a <link rel="preload"> to that exact image — whether it's a normal <img> or a CSS background-image. It self-corrects as your design and content change, with zero configuration.
What makes it different
background-image heroesfetchpriority="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.
fetchpriority="high".background-image hero support — preloads the measured/manual background image, a blind spot for most performance plugins.loading="eager" on the LCP image and loading="lazy" on below-fold images so native lazy-loading never delays your hero.<picture> heroes are supported as LCP targets via the learned/manual preload.fetchpriority tag.<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