Last Updated on 21st September 2021 by Ajmer Singh
Did you know comments are also using resources to load? If you are using Gtmetrix to check your page speed then check the waterfall section. There you will find all the requests with load times including comments.
Comments are taking time to load and impacts the overall performance of your website page performance. So, how to optimize comments in WordPress websites?
So to avoid this issue, we are going to share a plugin( with settings instruction) that lazy load your comments and improve your page performance.
Name of the plugin: Lazy load for comments
Author: Joel James
Active Installations: 6K+
How To Optimize Comments In WordPress
Lazy load for comments
- Login to your admin dashboard
- Click on plugins
- Add new
- Search “lazy load for comments”
At your dashboard (on the left), click on settings-discussion.
Scroll down, above the avatars section, you will see the Lazy load comments section.
Then select from the drop-down that how you load the comments.
- No lazy load
On-scroll: On-scroll works the same as lazy load images. The comment appears only when you scroll down, not at the same time.
On-click: We are using on-click on our site. It creates a button type”LOAD COMMENTS”, your comments appear when you click on load comments.
No lazy load: Disables lazy load.
- load comments only when required
- improve the page loading speed
- reduce the number of HTTP requests
After these settings, check your score on GTmetrix again. Also, check the waterfall tab for better understanding.
So, hope you guys understand how to optimize comments in WordPress.
Have any questions, comment below.
People also search for:
Ajmer Singh is the Founder & Author of Findmytricks. He is a Passionate Blogger, Content writer & WordPress developer. He loves sharing content related to WordPress and Blogging. He enjoys playing games in his free time.
1. “Be yourself. Everyone else is already taken.”
2. “First, learn the rules, then break them”