[WordPress] 外掛分享: Fetchpriority

首頁外掛目錄 › Fetchpriority
WordPress 外掛 Fetchpriority 的封面圖片
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
40+
安裝啟用
尚無評分
911 天前
最後更新
問題解決
WordPress 6.1+ PHP 5.6+ v1.1.1 上架:2023-05-04

內容簡介

總結:此 WordPress 外掛可在畫面載入時告知瀏覽器應先載入最重要的圖片,從而提升網頁的載入速度,並藉由 WordPress 內建的判斷方式,判斷哪個圖片最適合進行此設定。

問題與答案:

問題:此 WordPress 外掛的功能為何?

回答:此 WordPress 外掛可以在畫面載入時告知瀏覽器應先載入最重要的圖片,從而提升網頁的載入速度。

問題:此 WordPress 外掛是如何判斷哪一個圖片最適合進行此設定?

回答:此 WordPress 外掛使用 WordPress 內建的判斷方式,判斷哪一個圖片最適合進行此設定,並在該圖片上加入 fetchpriority="high" 屬性,以告知瀏覽器應優先載入此圖片。另外,儘管可能有多個圖片不進行懶加載(lazy-load),但只會將一張圖片進行 fetchpriority="high" 設定。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Fetchpriority」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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

延伸相關外掛

文章
Filter
Apply Filters
Mastodon