Lazy Load for Comments

설명

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.

스크린샷

  • Settings - Select lazy load method.

설치

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.

후기

2020년 August 23일
This plugin is brilliant, but for all the wrong reasons. Currently running WP - Version - 5.5 You all know the story, junk bomber-bots cruises the web, see an open comments section: then swoops in and drops their get rich (and other), foul smelling loads right into your unsuspecting core, whereby you have to clean the [spam] out, if the system hasn't already done so, but you still need to check it anyhow: just in case. It's a pain, am I right? The only viable solution that I've found to date, (apart from installing junk plugin killers that don't work), is to close off [all] comments on [all] pages bar one, the contacts page: that I had to monitor constantly, .. But not any more, if you select (Button) to load the comments section, then it appears that this Plugin hides the WP comments-open-letter-box from the bomber-bots, which is brilliant. Now I'm not saying that the junk-Bots can't evolve: they probably will, but currently, the automatic spam scripts can't press a button to open their bomb-bays with their stinking deposits, .. Oh' happy days: no junk mail for over a week now. I can highly recommend the lazy loading plugin, but as I say: for all the wrong reasons. Hope it helps.
2020년 July 10일
I work on a lot of sites that have a ton of comments so lazy loading seems like an interesting idea. Unfortunately I found this plugin breaks a very basic WP function of using an anchor to quickly scroll down to the comments section. Many themes have this "jump to comments" link built right in. Unfortunately both the "#respond" and "#comments" anchors are part of the HTML that gets lazy loaded. I hope the author comes up with a solution. Keep up the good work!
2020년 July 8일
Although the plugin has not been updated for WP 5.4.2, it still works as documented. No bloat. A straight-forward solution. Kudos to the developer, although I hope the plugin has not been abandoned. Confirmed works with Genesis Framework.
2020년 September 10일
Плагин маленький, но существенно сокращается время загрузки страницы. Спасибо за плагин!
모든 23 평가 읽기

기여자 & 개발자

“Lazy Load for Comments”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“Lazy Load for Comments”(이)가 1(으)로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Lazy Load for Comments”(을)를 번역하십시오.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하십시오.

변경이력

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.