Lazy load default WordPress commenting system on scroll or click. Improve page speed.
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
Bug reports are always welcome. Report here.
lazy-load-for-comments.zip
to your plugins directory, which usually is /wp-content/plugins/
.Feel free to open a support request.
If you would like to have an additional feature for this plugin, let me know
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.
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' );
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'; });
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'; });
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>'; });
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; });
Please open a support request.