Linux 软件免费装
Banner图

FetchPriority Featured Image

开发者 gunjanjaswal
更新时间 2026年6月29日 02:43
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPLv2 or later
版权网址: 版权信息

标签

performance lcp core-web-vitals image-optimization fetchpriority

下载

1.2.0 1.1.0 1.0.0 1.3.0 1.4.0

详情介绍:

FetchPriority Featured Image is a self-learning LCP (Largest Contentful Paint) optimizer. Instead of guessing which image is your hero like every other plugin, it measures the real LCP element from your actual visitors (via the browser's PerformanceObserver), learns it per template, and then automatically applies 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 Key Features Why Use FetchPriority? The 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: Developer-Friendly The plugin uses WordPress's native filters and doesn't modify your database or image files.

安装:

  1. Upload the fetchpriority-featured-image folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. That's it! The plugin works automatically with no configuration needed

升级注意事项:

1.4.0 Major update: self-learning LCP from real visitors, CSS background-image preload, visual LCP picker, and a built-in Core Web Vitals before/after report. Backward-compatible; learning is on by default at a 20% sample rate. 1.3.0 Settings page; hero preload with AVIF/WebP detection; optional low-priority below-fold tagging; theme presets (Astra/GeneratePress/Kadence/Divi/Elementor); avatar exclusion; admin-bar debug badge. Defaults backward-compatible; low-priority tagging opt-in. 1.2.1 Compatibility with WordPress 7.0 and donation link updated to Ko-fi. 1.2.0 Major compatibility update! Now works with Divi, Elementor, and other page builders. Highly recommended for all users. 1.1.0 Compatibility update for WordPress 6.9 with security improvements. Requires PHP 7.4 or higher. 1.0.0 Initial release of the plugin.

常见问题:

Does this plugin modify my images?

No, this plugin only adds an HTML attribute to the image tag. It doesn't modify your actual image files or database entries.

Will this work with my theme?

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.

Do I need to configure anything?

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).

Will this slow down my site?

No, the plugin adds minimal overhead and should actually improve your site's performance by helping browsers prioritize important images.

How can I verify it's working?

You can view the HTML source of your pages and look for fetchpriority="high" in the featured image HTML.

更新日志:

1.4.0 1.3.0 1.2.1 1.2.0 1.1.0 1.0.0