[WordPress] 外掛分享: BJ Lazy Load

WordPress 外掛 BJ Lazy Load 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「BJ Lazy Load」是 2011-12-05 上架。
  • 目前有 20000 個安裝啟用數。
  • 上一次更新是 2017-11-28,距離現在已有 2732 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.5 以上版本才可以安裝。
  • 有 90 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

arontornberg | angrycreative | bjornjohansen |

外掛標籤

images | iframes | Optimize | javascript | Lazy Loading |

內容簡介

延遲載入可使您的網站加載速度更快,並節省頻寬。

此外掛可取代您所有的文章圖片、文章縮略圖、大頭貼圖片和內容的 iframe,並使用佔位圖片,當訪客滾動頁面接近進入瀏覽器視窗時,再載入內容。也可用於文字小工具。

因為它適用於 iframe,因此也支援 YouTube、Vimeo 等的嵌入式視訊。

您也可以通過使用簡單的篩選器,將主題中的其他圖片和 iframe 進行延遲載入。

非 JavaScript 訪客將在 noscript 元素中獲取原始元素。

與 RICG Responsive Images 插件兼容,以呈現響應式圖片。

如果您有任何問題或建議,請告訴我。最快回覆方式是透過 Twitter:https://twitter.com/bjornjohansen

翻譯

俄語 (ru_RU),由 Elvisrk 翻譯
希伯來語 (he_IL),由 Imri Sagive 翻譯
波蘭語 (pl_PL),由 Maciej Gryniuk 翻譯
挪威博克馬爾語 (nb_NO),由 Bjørn Johansen 翻譯

此掛件的開發在 GitHub 進行,歡迎提交 pull requests。

選用用法

如果您在自訂範本中輸出圖片或希望延遲載入主題中的其他圖片,可以通過篩選器將 HTML 傳遞過去:

$img_html = '';
$img_html = apply_filters( 'bj_lazy_load_html', $img_html );
echo $img_html;
?>

開發人員注意:篩選器優先級為 10。

原文外掛簡介

Lazy loading makes your site load faster and saves bandwidth.
This plugin replaces all your post images, post thumbnails, gravatar images and content iframes with a placeholder and loads the content as it gets close to enter the browser window when the visitor scrolls the page. Also works with text widgets.
Since it works with iframes, it also covers embedded videoes from YouTube, Vimeo etc.
You can also lazy load other images and iframes in your theme, by using a simple filter.
Non-javascript visitors gets the original element in noscript.
Compatible with the RICG Responsive Images plugin for responsive images.
Please let me know if you have any issues. Fastest way to get a response is by Twitter: https://twitter.com/bjornjohansen
Translations

Russian (ru_RU) by Elvisrk
Hebrew (he_IL) by Imri Sagive
Polish (pl_PL) by Maciej Gryniuk
Norwegian Bokmål (nb_NO) by Bjørn Johansen

Development happens at GitHub. Pull requests are very welcome.
Optional usage
If you have images output in custom templates or want to lazy load other images in your theme, you may pass the HTML through a filter:
';
$img_html = apply_filters( 'bj_lazy_load_html', $img_html );
echo $img_html;
?>

Note for developers: The filter has a priority of 10.

各版本下載點

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

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


0.1 | 0.2 | 0.8 | 1.0 | 0.2.1 | 0.2.2 | 0.2.3 | 0.2.4 | 0.2.5 | 0.3.0 | 0.3.1 | 0.3.2 | 0.3.3 | 0.4.0 | 0.5.0 | 0.5.1 | 0.5.2 | 0.5.4 | 0.6.0 | 0.6.1 | 0.6.2 | 0.6.3 | 0.6.4 | 0.6.5 | 0.6.6 | 0.6.7 | 0.6.8 | 0.6.9 | 0.7.0 | 0.7.1 | 0.7.2 | 0.7.3 | 0.7.5 | 1.0.1 | 1.0.2 | 1.0.3 | 1.0.4 | 1.0.5 | 1.0.6 | 1.0.7 | 0.6.10 |

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

  • Autoptimize 》Autoptimize 能夠輕鬆優化您的網站。它可以整合、縮小和快取腳本和樣式表,在默認情況下向頁面 head 中注入 CSS,但也可以內嵌關鍵 CSS 並延遲整合的完整 CSS...。
  • WebP Express 》ch means less bandwidth usage and faster page load times., Easy to use - with little effort, WordPress site admins can have their site serving auto...。
  • Recent Posts Widget With Thumbnails 》列出最新的文章標題、縮略圖、摘要、作者、類別、日期等等!, 雖然此外掛僅建立在小工具區域,但使用者報告說它在 Elementor 和 Oxygen 上運作順暢。但它是否...。
  • Modern Image Formats 》外掛介紹:此外掛可在 WordPress 應用程式中增加 WebP 支援,但僅針對新上傳的影像檔案轉換成 WebP 格式,現有檔案不會轉換。預設情況下,WebP 只會針對 JPEG...。
  • Responsive Lightbox & Gallery 》提供完整的 WordPress 相簿外掛所需一切, Responsive Lightbox and Gallery 外掛是一個全功能的 WordPress 相簿外掛,擁有強大的拖放相簿生成器和 Lightbox ...。
  • Lightbox & Modal Popup WordPress Plugin – FooBox 》FooBox是第一個嚴肅考慮響應式佈局的燈箱。它不僅會將圖片縮放以在手機上呈現更好的效果,還會重新排列按鈕控制,使其在縱向或橫向的方向上都展現出色的外觀...。
  • Media Cleaner: Clean your WordPress! 》Media Cleaner 是一個強大的外掛,它可以幫助你清理 WordPress 媒體庫中未使用的媒體條目和文件,以及修復損壞的條目。內置回收站功能讓你可以在永久刪除之前...。
  • Media Library Assistant 》媒體庫助手提供多個增強功能,方便管理媒體庫,其中包括:, , , , [mla_gallery] 短碼,在文章、頁面或自訂文章類型中使用,添加圖片和/或其他媒體庫項目(...。
  • Image Placeholders 》總結:, 這個外掛可以在WordPress的媒體庫中確定並儲存新上傳圖片的主要顏色,並且利用它在前端建立一個相應顏色的佔位背景,在圖片加載之前可見。, , 問題與...。
  • Enhanced Responsive Images 》這個外掛程式實現了將 sizes="auto" 加入到懶加載圖片的 HTML 規格。, 相關背景資訊請參考:https://github.com/whatwg/html/issues/4654。, , 問...。
  • Image Watermark 》Image Watermark 外掛能讓您自動給 WordPress 媒體庫上傳的圖片打上浮水印,也可大量添加浮水印到之前上傳的圖片之中。, 欲進一步瞭解,請前往dFactory的外掛...。
  • FancyBox for WordPress 》本外掛能讓FancyBox輕鬆整合到您的部落格:上傳,啟用,完成。您也能選擇進行更多的設置。, 您幾乎可以對Fancybox lightbox的所有屬性進行自定義:邊框、邊緣...。
  • Crop-Thumbnails 》此外掛提供調整裁切圖像的裁切區域功能。它會在編輯頁面和媒體對話框中添加按鈕,以便進入裁剪編輯器。, 在裁剪編輯器中,您可以選擇一個或多個(如果它們具...。
  • Clean Image Filenames 》這個外掛可以在您上傳至媒體庫時自動將檔名中的語言重音符號轉換。轉換後的字符將會變成網頁和伺服器友好、無語言重音的字元。, 功能, , 將瑞典語、丹麥語、...。
  • Optimus – WordPress Image Optimizer 》WordPress圖片優化器, Optimus可自動降低已上傳媒體檔案的檔案大小。根據圖片和格式,可以減少高達70%的大小。每張圖片可以節省數千位元組,這些節省可以對博...。

文章
Filter
Apply Filters
Mastodon