[WordPress] 外掛分享: Lazy Load for Comments

首頁外掛目錄 › Lazy Load for Comments
WordPress 外掛 Lazy Load for Comments 的封面圖片
2,000+
安裝啟用
★★★★
4.7/5 分(28 則評價)
17 天前
最後更新
100%
問題解決
WordPress 6.0+ PHP 7.4+ v2.0.1 上架:2016-07-20

內容簡介

使用Lazy Load for Comments外掛,可在不需要複雜設置的情況下,將WordPress默認評論系統進行 Lazy Load 處理。消除不必要的 HTTP 請求,恢復頁面速度。

Lazy Load for Comments - 功能和優勢

僅在需要時加載評論。
提高頁面加載速度。
減少 HTTP 請求的數量!
對評論框的圖像進行 Lazy Load 處理。
支持Genesis主題。
支持Divi主題。
可翻譯!
沒有複雜的設置(僅需一個設置)。
開發者友好,可提供鉤子進行修改。
遵循最佳的WordPress編碼標準。
當然,也可在GitHub上找到它

安裝說明 | 截圖

錯誤報告

歡迎報告錯誤。在此報告。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.1) 或搜尋安裝

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

原文外掛簡介

Comments are heavy. A long thread can pull in dozens of avatars, gravatar lookups and reply scripts — all of which the browser downloads before the visitor has even reached them. Lazy Load for Comments defers all of that until the visitor either scrolls to the comments area or clicks a button.
The result: fewer HTTP requests, faster Largest Contentful Paint and a happier Lighthouse score, without changing how your comment template looks.
Version 2.0 is a complete rewrite. It uses the WordPress REST API to fetch the rendered comments on demand and works with both classic themes (comments_template()) and block themes (the core Comments block) out of the box.

Features

Lazy-load comments on scroll, on button click, or turn the plugin off without deactivating it.
Works with classic themes and block themes (the core Comments block).
Loads comments inline for search engine crawlers, so indexing and SEO are not affected.
Per-post cache of the rendered Comments block — REST renders stay fast.
Minimum-comment-count threshold so short threads still render inline.
Customisable load-button text, style and extra CSS classes.
Clean React settings page under Comments → Lazy Load.
No jQuery dependency. Front-end script is vanilla JS and intentionally small.
Translation-ready. Hooks and filters available for further customisation.

Useful links

Plugin website
Documentation
Support forum

延伸相關外掛

文章
Filter
Apply Filters
Mastodon