Title: FetchPriority Featured Image
Author: Gunjan Jaswal
Published: <strong>2025 年 11 月 3 日</strong>
Last modified: 2026 年 5 月 21 日

---

搜尋外掛

![](https://ps.w.org/fetchpriority-featured-image/assets/banner-772x250.png?rev=
3424799)

![](https://ps.w.org/fetchpriority-featured-image/assets/icon.svg?rev=3424808)

# FetchPriority Featured Image

 由 [Gunjan Jaswal](https://profiles.wordpress.org/gunjanjaswal/) 開發

[下載](https://downloads.wordpress.org/plugin/fetchpriority-featured-image.1.3.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/fetchpriority-featured-image/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/fetchpriority-featured-image/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/fetchpriority-featured-image/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/fetchpriority-featured-image/#developers)

 [技術支援](https://wordpress.org/support/plugin/fetchpriority-featured-image/)

## 外掛說明

FetchPriority Featured Image is a lightweight plugin that automatically adds the`
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

 * Automatically adds `fetchpriority="high"` to the hero / featured image
 * Optional `fetchpriority="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 detection — when a sibling `.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)
 * Theme presets — auto-detects Astra, GeneratePress, Kadence, Divi, and Hello Elementor
   and excludes their site-logo / header-image classes so the priority budget is
   spent on the real hero
 * Avatar / Gravatar exclusion — never tags images with class `avatar` / `gravatar`
   or hosted on gravatar.com
 * Settings page (Settings  FetchPriority) for per-context toggles, first-N control,
   preload, and exclusions
 * Admin-bar debug badge showing how many images were tagged on the current page(
   total + how many got `high`)
 * Compatible with most WordPress themes including Divi, Elementor, Astra, GeneratePress,
   Kadence, and any theme using standard `the_post_thumbnail()` / `wp_get_attachment_image()`

#### 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:

 * Largest Contentful Paint (LCP) scores
 * User experience with faster loading of important images
 * Overall page performance

#### 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

## 常見問題集

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

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈FetchPriority Featured Image〉的開發相關工作。

參與者

 *   [ Gunjan Jaswal ](https://profiles.wordpress.org/gunjanjaswal/)

[將〈FetchPriority Featured Image〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/fetchpriority-featured-image)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/fetchpriority-featured-image/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/fetchpriority-featured-image/)，
或透過 [RSS](https://plugins.trac.wordpress.org/log/fetchpriority-featured-image/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/fetchpriority-featured-image/)。

## 變更記錄

#### 1.3.0

 * Added Settings page under Settings  FetchPriority (Contexts / Preload / Below-
   fold / Exclusions / Theme preset / Debug).
 * Added per-context toggles: Single posts & pages, Blog home, Archives, Search 
   results.
 * Added “First N posts on archives” setting (1–20) — previously hardcoded to first
   post only.
 * Added optional `<link rel="preload" as="image" fetchpriority="high">` for the
   featured image on singular pages (strongest LCP signal).
 * Added AVIF / WebP detection — when a sibling modern-format file exists on disk,
   additional `<link rel="preload" type="image/avif|webp">` tags are emitted; browsers
   pick the supported variant automatically.
 * Added `fetchpriority="low"` for below-fold images (opt-in) as a paired complement
   to the hero `high` tag.
 * Added theme presets (Astra / GeneratePress / Kadence / Divi / Hello Elementor)
   with auto-detection — excludes theme logo & header classes so the priority budget
   hits the real hero.
 * Added Avatar / Gravatar exclusion to keep author avatars from consuming the priority
   budget.
 * Added admin-bar debug badge showing total tagged + how many were tagged `high`.
 * Added Settings link to plugin action links on the Plugins screen.
 * Content filter rewritten to use a `preg_replace_callback` walk so the high/low
   budget is honored across all images in the content, not only the first.
 * Cleaner reset logic on each request via `template_redirect`.
 * Author display name updated to “Gunjan Jaswal”.

#### 1.2.1

 * Updated “Tested up to” to WordPress 7.0.
 * Updated donation link to Ko-fi (https://ko-fi.com/gunjanjaswal).
 * Removed extraneous GITHUB_DESCRIPTION.md from plugin root for WordPress.org compliance.

#### 1.2.0

 * Added support for Divi theme and Elementor page builder
 * Implemented `wp_get_attachment_image_attributes` filter for broader compatibility
 * Added content filter fallback to catch custom image implementations
 * Improved image detection across different theme rendering methods
 * Enhanced compatibility with themes that bypass standard WordPress image functions

#### 1.1.0

 * Updated for WordPress 6.9 compatibility
 * Improved security with nonce verification for AJAX calls
 * Updated minimum PHP requirement to 7.4
 * Enhanced code quality and WordPress coding standards compliance
 * Added proper input sanitization and escaping
 * Aligns with WordPress 6.9’s frontend performance improvements

#### 1.0.0

 * Initial release

## 中繼資料

 *  版本 **1.3.0**
 *  最後更新 **6 天前**
 *  啟用安裝數 **200+**
 *  WordPress 版本需求 ** 5.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **7.0**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/fetchpriority-featured-image/)
 * 標籤:
 * [featured image](https://tw.wordpress.org/plugins/tags/featured-image/)[fetchpriority](https://tw.wordpress.org/plugins/tags/fetchpriority/)
   [images](https://tw.wordpress.org/plugins/tags/images/)[performance](https://tw.wordpress.org/plugins/tags/performance/)
   [web vitals](https://tw.wordpress.org/plugins/tags/web-vitals/)
 *  [進階檢視](https://tw.wordpress.org/plugins/fetchpriority-featured-image/advanced/)

## 評分

這個項目尚無任何評論記錄。

[Your review](https://wordpress.org/support/plugin/fetchpriority-featured-image/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/fetchpriority-featured-image/reviews/)

## 參與者

 *   [ Gunjan Jaswal ](https://profiles.wordpress.org/gunjanjaswal/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/fetchpriority-featured-image/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://ko-fi.com/gunjanjaswal)