How to Lazy Load Comments in WordPress Blogs

How to Lazy Load Comments in WordPress Blogs
How to Lazy Load Comments in WordPress Blogs

Lazy loading comments in WordPress blogs can increase the site loading speed should you decide to implement it on your WordPress blog. The main advantage of lazy loading comments will be very obvious in blogs with a large number of comments as they significantly increases the loading time of the webpage by increasing the webpage size as well.

Lazy Load WordPress Comments

So how can you lazy load comments? While lazy loading images functionality is well built in the chrome browser as well as in WordPress 5.5. The ability to lazy load comments automatically is still not there by default.

A WordPress plug-in called lazy load comments can make this happen in one click. Once you download and activate this plug-in and optimize settings, it will not load the WordPress comments after the article by default and will only load the comments as per your preference.

In Settings > Discussion, there is one single option available with other comment options. You can load it on Scrolling to the area where comments are, or load on a click or disable the option. I think the On scroll works fine as it displays the comments without need an additional click action by the user (which does not seem to be lazy loading anyway as comments are hidden).

If the WordPress comments are not loaded at all, it has several advantages and disadvantages. 

A. Faster Site Loading

The most important advantage is for site speed as these hundreds of comments are not loaded and therefore the webpage size in the first load is very small and therefore the webpage is expected to load much faster. If you test page speed, you will indeed note a dramatic improvement in page speed.

Of course if you are not using a WordPress Caching plugin, you are also forcing multiple PHP calls which itself puts a lot of server load pulling all those comments and gravatar images. We tried loading comments on new page or hiding comments by jquery, but both were a different approach altogether.

Faster loading pages are good for search engine optimization with the new web core vitals statistics and therefore it is a good idea to lazy load comments.

B. Poor Comment Indexing for SEO

The main disadvantage is that the comments might not be loaded when web search robots like Google bot visits the page as it gets smart at mimicking the actual user experience, and they just might not index the WordPress comments as well as seen upfront. This might be more of an issue if you choose the ‘click to see’ comments option and should be less of an issue with the ‘scrolling’ option.

So why is this a problem? It is a problem because WordPress comments content might get poorly indexed and if that particular comment content was helping rank the page for long tail keywords, your site might lose search engine rankings for those particular pages ranking!

So practically while it is possible to lazy load comments easily, you have to take this call whether you actually want to prevent loading of comments or do you want to continue with the same.

Source – https://www.quickonlinetips.com/archives/2021/01/lazy-load-comments-in-wordpress-blogs/

RSS Latest Press Release

  • Confort Prestige | Climatisation & Chauffage Announces HVAC Services For Improved Energy Efficiency
    TERREBONNE, QUEBEC- NOVEMBER 14, 2021- Premier heating and cooling company Confort Prestige is excited to share HVAC solutions with domestic customers in the Terrebonne area. These services aim to save customers money on their heating and cooling expenses throughout the year.   Since its debut, Confort Prestige has been committed to customer service. This starts […]
  • Hundreds of Car and Truck Parts Available from Salvage Specialist
    Morganville, NJ – When it comes to finding an auto part for a foreign or domestic vehicle, Trilenium Auto Salvage usually has the answer.   The Morganville, NJ salvage specialist has hundreds, if not thousands, of parts and components at its Tennent Rd premises available.   Trilenium Auto Salvage is one of the busiest salvage specialists […]
  • Flowsent Weed Delivery Offers the Fastest Weed Delivery Service in the Bay Area
    Bay Area, CA - As it becomes easier to get cannabis in different stores and online, weed delivery in Oakland, San Francisco, and other Bay Area cities are becoming more common. People are looking for the easiest way to get their hands on high-quality, safe cannabis, and nothing beats direct to your door.    Many […]
  • Cannamazoo Now Offering the Top Cannabis Concentrates in Michigan
    What are Cannabis Concentrates, Oils, and Extracts?   Kalamazoo, MI - You may be familiar with recreational cannabis in its usual form, but have you ever tried extracts, oils, and concentrates? Each of these forms offers unique effects and benefits that smoking cannabis flowers can't provide. Simple dosing, cleaner effects, and better taste are just […]