跳到内容

Lazy Load for Comments

v2.1.0

Joel James · 2016年7月21日 上架

Speed up your posts by lazy-loading the WordPress comments on scroll or click. Works with classic and block themes.

正在使用
2,000+
评分
4.7 / 5
累计下载
22 万
最近更新
2026年9月18日
28 条评价需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

截图

Loading behaviour settings.
Loading behaviour settings.
Load button settings.
Load button settings.
Cache management.
Cache management.

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

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums