How to lazy load comments in WordPress

Tutorials 0 lượt xem

In a previous post, I shared some tips to speed up WordPress . Delayed loading of images is one such trick.

Besides images, comments are also a website element that affects pagesize. Therefore, comments also have an effect on website loading speed.

By not loading a bunch of comments right away, you’ll improve your site’s loading speed. It also improves user experience on small screens and slow Internet connections.

In this article, I will show you an easy way to lazy load comments in WordPress.

Read more : 6 most popular WordPress comment plugins you should know


lazy load comments 1

How to Delay Comments in WordPress

First you need to install and activate the Lazy Load for Comments plugin . For details, see the WordPress plugin installation guide .

As soon as the plugin is activated you need to go to Settings -> Discussion .


lazy load comments 2

Scroll down to the Lazy Load Comments section. Here you choose the delay loading method you want. You can choose one of two delay loading methods as below:

  • On Scroll: with this method, the comment will automatically be loaded when the user scrolls to the bottom of the web page
  • On Click: with this method, the user needs to click on the button to see the comment. Comments will not load automatically. It will look like below:

lazy load comments 3

Click the Save Changes button to save the settings.

Now you can see how lazy load comments work on any post in your WordPress site.

At this point, you already know how to defer comments in WordPress.

If you liked this article, don’t forget to subscribe to the email list to receive notifications of new posts from .

Bài viết liên quan