开发者 |
joelcj91
duckdev |
---|---|
更新时间 | 2024年10月14日 01:48 |
捐献地址: | 去捐款 |
PHP版本: | 4.0 及以上 |
WordPress版本: | 6.6 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
Lazy Load for Comments - Features & AdvantagesInstallation | Screenshots
- 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
lazy-load-for-comments.zip
to your plugins directory, which usually is /wp-content/plugins/
.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.