[WordPress] 外掛分享: lazysizes

前言介紹

  • 這款 WordPress 外掛「lazysizes」是 2017-11-01 上架。
  • 目前有 900 個安裝啟用數。
  • 上一次更新是 2020-08-13,距離現在已有 1725 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.9 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.6 以上。
  • 有 6 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

16patsle |

外掛標籤

image | Blurhash | lazy load | lazysizes | performance |

內容簡介

lazysizes 是一個 WordPress 外掛程式,專為高效能、友善的搜尋引擎優化並自動觸發的 lazyloader(同名)所設計。支援包括圖片(包括具有 srcset 和 picture 標籤的響應式圖片)、iframe、腳本/小工具等等。它還通過區分關鍵和接近視野元素來優先處理資源,以使感知效能提高更快。此外,您可以使用 Blurhash 演算法添加低分辨率/模糊的佔位圖片。

此外掛程式可透過在 WordPress 網站前端加載 lazysizes 腳本並將 src 和 srcset 屬性替換為 data-src 和 data-srcset,當載入文章或頁面時,lazysizes JavaScript 將根據需要動態載入圖片、iframe 等。您所需做的只是啟用此外掛程式,可能需要微調一些設定以適合您的喜好。

感謝 aFarkas 和貢獻者使得 lazysizes 库 可以實現,並讓我使用相同的名字。

同時感謝 dbhynds 創建了 Lazy Load XT 外掛程式,此外掛程式也是以此為基礎。

原文外掛簡介

lazysizes is a WordPress plugin for the high performance, SEO-friendly and auto-triggering lazyloader with the same name. Support includes images (including responsive images with srcset and the picture tag), iframes, scripts/widgets and much more. It also prioritizes resources by differentiating between crucial in view and near view elements to make perceived performance even faster. Additionally, you can add low-res/blurry placeholder images using the Blurhash algorithm.
This plugin works by loading the lazysizes script and replacing the src and srcset attributes with data-src and data-srcset on the front end of a WordPress site. When a post or page is loaded, the lazysizes javascript will load the images, iframes etc. dynamically when needed. All you need to do is to enable the plugin, and possibly tweak a few settings to your liking.
Thanks to aFarkas and contributors for making the lazysizes library possible, and for letting me use the same name.
Also thanks to dbhynds who made the Lazy Load XT plugin, which this plugin is based on.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「lazysizes」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.1.3 | 0.2.0 | 0.3.0 | 1.0.0 | 1.1.0 | 1.2.0 | 1.2.1 | 1.3.0 | 1.3.1 | 1.3.2 | 1.3.3 | trunk |

延伸相關外掛(你可能也想知道)

  • Lazy Loader 》這款懶加載外掛支援圖片、iFrame、影片和音訊元素,使用輕量級的 lazysizes 腳本。手動修改標記也可以實現懶加載背景圖片、腳本和樣式。, 以下元素會自動懶加...。

文章
Filter
Apply Filters
Mastodon