
內容簡介
總結:此 WordPress 外掛可在畫面載入時告知瀏覽器應先載入最重要的圖片,從而提升網頁的載入速度,並藉由 WordPress 內建的判斷方式,判斷哪個圖片最適合進行此設定。
問題與答案:
問題:此 WordPress 外掛的功能為何?
回答:此 WordPress 外掛可以在畫面載入時告知瀏覽器應先載入最重要的圖片,從而提升網頁的載入速度。
問題:此 WordPress 外掛是如何判斷哪一個圖片最適合進行此設定?
回答:此 WordPress 外掛使用 WordPress 內建的判斷方式,判斷哪一個圖片最適合進行此設定,並在該圖片上加入 fetchpriority="high" 屬性,以告知瀏覽器應優先載入此圖片。另外,儘管可能有多個圖片不進行懶加載(lazy-load),但只會將一張圖片進行 fetchpriority="high" 設定。
外掛標籤
開發者團隊
原文外掛簡介
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".
