網站圖片載入優化:loading=”eager”、fetchpriority=”high” 與 preload 是什麼?

網站圖片載入優化:loading="eager"fetchpriority="high"preload 是什麼?

如果你使用 Google PageSpeed Insights 檢測網站,可能會看到建議:

為 LCP 圖片使用 loading="eager"fetchpriority="high",並在 <head> 加入 preload

這些設定的目的只有一個:讓首頁最重要的圖片更快顯示,提高網站效能。 閱讀全文〈網站圖片載入優化:loading=”eager”、fetchpriority=”high” 與 preload 是什麼?〉