Lazy Load for Comments

Description

Lazy load WordPress default commenting system without any complex configurations. Get rid of unwanted HTTP requests and get your page speed back.

Lazy Load for Comments – Features & Advantages

  • Load comments only when required.
  • Improve page loading speed.
  • Reduce no. of HTTP requests!
  • Lazy loading comments gravaters.
  • Genesis support.
  • Divi support.
  • Translation ready!
  • No complex configurations (Just one setting).
  • Developer friendly (Hooks available for altering).
  • Follows best WordPress coding standards.
  • Of course, available on GitHub

Installation | Screenshots

Bug Reports

Bug reports are always welcome. Report here.

Screenshots

  • Settings - Select lazy load method.

Installation

Installing the plugin – Simple

  1. In your WordPress admin panel, go to Plugins > New Plugin, search for Lazy Load for Comments and click “Install now
  2. Alternatively, download the plugin and upload the contents of lazy-load-for-comments.zip to your plugins directory, which usually is /wp-content/plugins/.
  3. Activate the plugin
  4. Go to Discussion settings.
  5. Select the lazy load method (Scroll or Click).

Need more help?

Feel free to open a support request.

Missing something?

If you would like to have an additional feature for this plugin, let me know

FAQ

What is the use of this plugin?

Plugin name says everything. This plugin prevents the comments from loading automatically when page/post is loaded. Instead, this plugin will lazy load the comments when user scroll down to comments section or clicking on comment button.

I don’t need loader gif image, can I disable it?

Yes, you can!. Just add following line to your theme’s functions.php or in your custom plugin.

add_filter( 'llc_enable_loader_element', '__return_false' );
How can I change the button text?

Just add following line to your theme’s functions.php or in your custom plugin.

add_filter( 'llc_button_text', function () {
    return 'My Custom Button Text';
});
How can I add a custom class to the button?

Add following line to your theme’s functions.php or in your custom plugin.

add_filter( 'llc_button_class', function () {
    return 'custom-class-1 custom-class-2';
});
Can I use something else instead of loader image?

Yes! There is a filter for this too! Add following line to your theme’s functions.php or in your custom plugin.

add_filter( 'llc_loader_element_content', function () {
    // Use any html element.
    return '<p class="custom-loader">Loading... Please wait.</p>';
});
How to lazy load only only when there specific (or more) no. of comments?

You can simply use below filter to set the minimum no. of comments to lazy load.

add_filter( 'llc_can_lazy_load_minimum_count', function () {
    // Lazy load only if there are 10 or more comments.
    return 10;
});
I need more details

Please open a support request.

Reviews

Yarkomaa 28, 2019
It's simple and it works as intended. However I think it's missing a feature, and it's to specify how many comments load at a time. I have a page with over 2800 comments and it loads all at once (It's not slow, but it takes a while) It would be interesting to have an option to decide in batches of how many comments we want to load them.
Juko 9, 2019
This plugin greatly reduced page load times per GTMetrics and Pagespeed Insights. I don't use any comment spam plugins because they slow page speed, so I've had to delete spam daily, until I installed this plugin. Apparently spam bots don't click the "load comments" button so they can't find the form? I got faster load times while reducing spam comments by 95%. Worked on 2 sites. Thank you for developing this and your continued support in keeping it updated.
Morso 29, 2019
This plugin doesn't work with Divi. There's quite a few comments in the support forum from the many Divi users, but the developer has yet to address the issue or even reply to the comments. ** Update -- Developer updated the plugin to work with Divi
Duujal 15, 2019
This plugin does one thing and does it well! Bonus point for being lightweight and not creating its own menu item (instead, it logically inserts itself under the Discussion settings).
Siilo 19, 2019
Some of my posts have hundreds of comments. It can make a post look really messy and no one could see my nice footer! I want to hide comments unless a reader chooses to read them. Lazy Load for Comments click to load option does exactly what I needed. I'm sure it will help our load times, too. Support was very helpful as well. Thanks so much!
Read all 16 reviews

Contributors & Developers

“Lazy Load for Comments” is open source software. The following people have contributed to this plugin.

Contributors

“Lazy Load for Comments” has been translated into 1 locale. Thank you to the translators for their contributions.

Translate “Lazy Load for Comments” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0.10 (24/07/2019)

  • 📦 Added support for Divi.

1.0.9 (16/03/2019)

  • 🐛 Fixed issues with scroll load in Woo reviews.

1.0.8 (14/03/2019)

  • 📦 Added Woo reviews support.

1.0.7 (14/03/2019)

  • 🐛 Fixed issues with WP 5.1.
  • 🐛 Fixed issues with Woo reviews.

1.0.6 (27/01/2019)

  • 📦 Added Genesis support.

1.0.5 (19/01/2019)

  • 📦 Added new filter to set minimum no. of comments to lazy load.
  • 👌 Lazy load only when there are comments.
  • 🐛 Fixed empty comments when comments are closed.

1.0.4 (22/12/2018)

  • 👌 Removed nonce (nonce is not required for frontend get requests.).
  • 👌 Changed to GET ajax request.
  • 🐛 Fixed comments respond link.

1.0.3 (03/04/2017)

  • Fixed wrong value return in bot checking function.

1.0.2 (08/02/2017)

  • Added custom filters.
  • Added loader while comments are being loaded.
  • Disabled lazy load for Search Engine crawlers.
  • Scroll to comment if #comment id found in url.
  • 100% translation ready.

1.0.0.1 (19/11/2016)

  • Bug fix on PHP v5.3 – Parse error.

1.0.0 (18/11/2016)

  • First version.