Recently I wanted to use the Ajax Comment Loading Plugin (developed by Mark Jaquith) on one of my WordPress sites. The functionality that plugin offers is very nice but it turns out that the plugin doesn’t work for current version of WordPress anymore.
I fixed the code a little to make it work with the current version of WordPress. So now you can use this plugin to get the ajax comment loading function to work on your site.
How the AJAX Comment Loading Works
The generation of the comment section is done via HTML and the delivery of all that HTML can slow down your page loads if you have lots of comments on all of your posts. This plugin loads the comments section of your WordPress site using an AJAX request which helps with the page load speed. When a page is rendering, it loads the page without comments, then uses a secondary AJAX request to pull the comments and shows it.
Navigating through the pages of comments (if you are using comment pagination) is also handled via AJAX.
Download the Plugin
Download the Ajax Comment Loading Plugin Fixed Version
Installing the Ajax Comment Loading Plugin
Below are the steps to install this plugin.
- Go to the Add New plugins screen in your WordPress admin area
- Click the upload tab
- Browse for the plugin file (ajax-comment-loading-fixed.zip)
- Click Install Now and then activate the plugin
How to Use This Plugin
You just have to keep this plugin active on your site and it will start loading your comments section using AJAX.
Please note that if your theme substantially deviates from standard WordPress comment section HTML layout then this plugin won’t work with your theme.
Works with the latest version of WordPress.
Check out our WordPress plugins page for more cool WordPress plugins.