Title: Lazy Load for Comments
Author: Joel James
Published: <strong>21 Julai 2016</strong>
Last modified: 1 Jun 2026

---

Search plugins

![](https://ps.w.org/lazy-load-for-comments/assets/banner-772x250.png?rev=3547560)

![](https://ps.w.org/lazy-load-for-comments/assets/icon.svg?rev=3548143)

# Lazy Load for Comments

 Oleh [Joel James](https://profiles.wordpress.org/joelcj91/)

[Download](https://downloads.wordpress.org/plugin/lazy-load-for-comments.2.0.1.zip)

 * [Details](https://ms.wordpress.org/plugins/lazy-load-for-comments/#description)
 * [Reviews](https://ms.wordpress.org/plugins/lazy-load-for-comments/#reviews)
 *  [Pemasangan](https://ms.wordpress.org/plugins/lazy-load-for-comments/#installation)
 * [Pembangunan](https://ms.wordpress.org/plugins/lazy-load-for-comments/#developers)

 [Support](https://wordpress.org/support/plugin/lazy-load-for-comments/)

## Description

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](https://duckdev.com/product/lazy-load-for-comments/)
 * [Documentation](https://docs.duckdev.com/lazy-load-for-comments/)
 * [Support forum](https://wordpress.org/support/plugin/lazy-load-for-comments/)

## Screenshots

[⌊Loading behaviour settings.⌉⌊Loading behaviour settings.⌉[

Loading behaviour settings.

[⌊Load button settings.⌉⌊Load button settings.⌉[

Load button settings.

[⌊Cache management.⌉⌊Cache management.⌉[

Cache management.

## Installation

**From the WordPress admin (recommended)**

 1. Go to _Plugins  Add New_, search for **Lazy Load for Comments** and click _Install
    now_.
 2. Activate the plugin.
 3. Open _Comments  Lazy Load_ and pick the load method that suits you.

**Manual install**

 1. Upload the `lazy-load-for-comments` folder to `/wp-content/plugins/`.
 2. Activate the plugin from the _Plugins_ screen.
 3. Open _Comments  Lazy Load_ to configure the settings.

For the full configuration guide, see the [official documentation](https://docs.duckdev.com/lazy-load-for-comments/loading-behaviour).

## FAQ

### Does it work with block themes?

Yes. The plugin detects whether the active theme is a block theme and either swaps
the classic `comments_template()` output or replaces the rendered `core/comments`
block, whichever applies.

### Will it work with my caching plugin?

Yes. The placeholder rendered server-side is plain HTML, so full-page caches can
cache it safely. The actual comments are fetched from a public REST endpoint, which
is also cache-friendly.

### How do I change the load method?

Open _Comments  Lazy Load_ and pick one of **On scroll**, **On button click** or**
Disabled** on the _Settings_ tab.

### How do I customise the load button?

The button text, the style (inherit your theme’s style or use the plugin’s built-
in style) and extra CSS classes can all be set under _Load Button_ on the _Settings_
tab.

### Does it support comment plugins like Disqus or Jetpack Comments?

No — this plugin only handles the **default** WordPress comments. Third-party comment
systems (Disqus, Jetpack Comments, etc.) replace the comment area entirely, so there
is nothing for this plugin to lazy-load.

### How do I disable lazy loading for a specific post or page?

Use the `lazy_load_for_comments_can_lazy_load` filter:

    ```
    add_filter( 'lazy_load_for_comments_can_lazy_load', function ( $can ) {
        if ( is_page( 'contact' ) ) {
            return false;
        }
        return $can;
    } );
    ```

### Are comments still indexed by Google?

Yes. By default the plugin detects search-engine crawlers from the User-Agent and
serves them the original (inline) comments markup, so indexing is not affected. 
You can turn this behaviour off on the _Settings_ tab if you’d rather always lazy-
load.

### Where can I get help?

The [official documentation](https://docs.duckdev.com/lazy-load-for-comments/) covers
most setups. For everything else, the free [WordPress.org support forum](https://wordpress.org/support/plugin/lazy-load-for-comments/)
is the best place to start.

## Reviews

![](https://secure.gravatar.com/avatar/fe1bfa9f9de47f01677355551b004a52173737b618915675e0b756036b267f66?
s=60&d=retro&r=g)

### 󠀁[Has Potential](https://wordpress.org/support/topic/has-potential-29/)󠁿

 [Emory Rowland](https://profiles.wordpress.org/emory/) 24 Februari 2024

But support is unresponsive.

![](https://secure.gravatar.com/avatar/37d077972318559a07259d6951668e0496cbfec95e5eb85c773c77dc7177d309?
s=60&d=retro&r=g)

### 󠀁[Good, but needs some enhancements](https://wordpress.org/support/topic/no-fuss-no-muss-3/)󠁿

 [itsryu](https://profiles.wordpress.org/itsryu/) 8 Februari 2022

It breaks the Moderation notice. The user just gets sent back to the main page and
they don’t know if their comment submitted or not. In my analytics, it states that
there is a javascript error, so that needs to be fixed. It also breaks the built
in discussion settings of breaking the comments into groups, and the feature of 
clicking “next” to get the next batch Other than that it works. Simple plugin without
options.

![](https://secure.gravatar.com/avatar/0bfe4e26f13c5b965a700860a5d92c262f25e35e7764c61bfe5a6db6f0afb310?
s=60&d=retro&r=g)

### 󠀁[Amazing plugin](https://wordpress.org/support/topic/amazing-plugin-1999/)󠁿

 [yastychef](https://profiles.wordpress.org/yastychef/) 27 September 2021

Great plugin, works fine. I just hope it always gets updated. Keep up the great 
work!

![](https://secure.gravatar.com/avatar/c609c78e1ecaedb1621498ede4d1f5997275548c9bf608d35e47e6fbcefbcbf0?
s=60&d=retro&r=g)

### 󠀁[Best Plugin I’ve ever used](https://wordpress.org/support/topic/best-plugin-ive-ever-used-9/)󠁿

 [fernandroid3](https://profiles.wordpress.org/fernandroid3/) 22 Mac 2021

Congratulations and thank you very much for this wonderful plugin, my website has
a lot of comments, several times the vps cpu reached 100% of use on the pages with
many comments, this plugin is wonderful, excellent.

![](https://secure.gravatar.com/avatar/954b3db263248226fc0e8a7f098cd9c351c9ac732c34fa708084f33f7fe4ee2f?
s=60&d=retro&r=g)

### 󠀁[Отличный плагин!](https://wordpress.org/support/topic/%d0%be%d1%82%d0%bb%d0%b8%d1%87%d0%bd%d1%8b%d0%b9-%d0%bf%d0%bb%d0%b0%d0%b3%d0%b8%d0%bd-667/)󠁿

 [westgen](https://profiles.wordpress.org/westgen/) 27 Februari 2021

Спасибо за отличный плагин! Это то, что я искал.

![](https://secure.gravatar.com/avatar/dc42e862d2892c023325bc78bc1a1e949b1cfe7a4335da57e084e4c69ada85c1?
s=60&d=retro&r=g)

### 󠀁[Just what I needed](https://wordpress.org/support/topic/just-what-i-needed-1027/)󠁿

 [janaa](https://profiles.wordpress.org/janaa/) 2 Oktober 2020

Just what I needed, and it didn’t slow down my webpages!

 [ Read all 28 reviews ](https://wordpress.org/support/plugin/lazy-load-for-comments/reviews/)

## Contributors & Developers

“Lazy Load for Comments” adalah perisian sumber terbuka. Orang-orang berikut telah
menyumbang kepada pemalam ini.

Penyumbang

 *   [ Joel James ](https://profiles.wordpress.org/joelcj91/)
 *   [ Duck Dev ](https://profiles.wordpress.org/duckdev/)

“Lazy Load for Comments” telah diterjemahkan ke dalam 6 penempatan. Terima kasih
kepada [para penterjemah](https://translate.wordpress.org/projects/wp-plugins/lazy-load-for-comments/contributors)
untuk terjemahan mereka.

[Translate “Lazy Load for Comments” into your language.](https://translate.wordpress.org/projects/wp-plugins/lazy-load-for-comments)

### Berminat dalam pembangunan?

[Layari kod](https://plugins.trac.wordpress.org/browser/lazy-load-for-comments/),
periksa [repositori SVN](https://plugins.svn.wordpress.org/lazy-load-for-comments/),
atau langgani [log pembangunan](https://plugins.trac.wordpress.org/log/lazy-load-for-comments/)
dengan [RSS](https://plugins.trac.wordpress.org/log/lazy-load-for-comments/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 2.0.1

 * Fixed comments not rendering on Genesis and similar classic themes that rely 
   on `comments_template()` populating `comments_by_type`.

#### 2.0.0

 * Complete rewrite using React and the WordPress REST API.
 * Added support for block themes (the core Comments block).
 * New React settings page under _Comments  Lazy Load_.
 * Settings for load method, minimum comment count, button text, button style and
   loader visibility.
 * Per-post cache of the rendered comments block, with a “Clear comments cache” 
   action in the settings.
 * Crawlers receive the inline comments by default so SEO is preserved.
 * Removed the dependency on jQuery.
 * Existing v1.x load-method setting is migrated automatically on upgrade.

#### 1.0.10

 * Added compatibility for the Divi theme builder.

## Meta

 *  Version **2.0.1**
 *  Last updated **1 bulan lalu**
 *  Active installations **2,000+**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **7.0**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [Dutch](https://nl.wordpress.org/plugins/lazy-load-for-comments/), [English (US)](https://wordpress.org/plugins/lazy-load-for-comments/),
   [Malayalam](https://ml.wordpress.org/plugins/lazy-load-for-comments/), [Persian](https://fa.wordpress.org/plugins/lazy-load-for-comments/),
   [Russian](https://ru.wordpress.org/plugins/lazy-load-for-comments/), [Spanish (Chile)](https://cl.wordpress.org/plugins/lazy-load-for-comments/),
   dan [Spanish (Spain)](https://es.wordpress.org/plugins/lazy-load-for-comments/).
 *  [Terjemahkan kepada bahasa anda](https://translate.wordpress.org/projects/wp-plugins/lazy-load-for-comments)
 * Tags
 * [comments](https://ms.wordpress.org/plugins/tags/comments/)[lazy load](https://ms.wordpress.org/plugins/tags/lazy-load/)
   [Page Speed](https://ms.wordpress.org/plugins/tags/page-speed/)[performance](https://ms.wordpress.org/plugins/tags/performance/)
 *  [Paparan Lanjutan](https://ms.wordpress.org/plugins/lazy-load-for-comments/advanced/)

## Ratings

 4.7 out of 5 stars.

 *  [  24 5-star reviews     ](https://wordpress.org/support/plugin/lazy-load-for-comments/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/lazy-load-for-comments/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/lazy-load-for-comments/reviews/?filter=3)
 *  [  2 2-star reviews     ](https://wordpress.org/support/plugin/lazy-load-for-comments/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/lazy-load-for-comments/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/lazy-load-for-comments/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/lazy-load-for-comments/reviews/)

## Penyumbang

 *   [ Joel James ](https://profiles.wordpress.org/joelcj91/)
 *   [ Duck Dev ](https://profiles.wordpress.org/duckdev/)

## Support

Isu yang diselesaikan dalam tempoh dua bulan lepas:

     1 daripada 1

 [View support forum](https://wordpress.org/support/plugin/lazy-load-for-comments/)

## Derma

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://paypal.me/JoelCJ)