Ajaxify Comments – Lazy Load and No Reload Comments

Popis

Skip page reloads and separate error screens when posting comments. Ajaxify Comments hooks into your native WordPress comment system and allows comment posting without a page reload. Lazy loading is also supported, which can help speed up your page load time.

TLDR

Getting Started | Sponsor Us | Launch an Instant Demo | Ajaxify Home

Ajaxify Comments hooks into your theme and improves the usability of the comment form by validating and adding comments without the need of page reloads. Users can remain on the page and interact with new comments as they’re posted. This plugin also supports lazy loading of comments, which can help speed up your page load time.

Introduction

When submitting the comment form, WordPress by default reloads the entire page. This can be a disorienting experience for the user. In the case of errors in the comment (invalid email, duplicate comment, empty comment), these often require a separate error screen and the user has to use the back button to edit their comment. This can be a frustrating experience for the user. Adding to that, comments can be resource intensive, and can slow down your page load time.

With Ajaxify Comments, comments are posted without a page reload. If there are errors, the error message is shown immediately, so the user can correct their comment.

Ajaxify Comments also comes with lazy loading of the comments section. For a page with a lot of comments, this can speed things up considerably. You can load comments when the DOM is ready or when the comment section is scrolled into view.

Moreover this plugin includes an option to automatically refresh the comments on the current page while the user stays on your page without requiring a page reload. This can be helpful in busy comment sections where reply response time is important.

Quick Resource Links

Here are some helpful links to help you get started with Ajaxify Comments:

  1. Getting Started Guide
  2. Lazy Loading Comments
  3. Menu Helper and Selectors
  4. Translating Using WPML

Requirements and Compatibility

Please use the native WordPress comment system with Ajaxify Comments.

The plugin has integrations with:

  1. Confetti – Show confetti when a comment is posted.
  2. Comment Edit Core – Allow users to edit their comments.

The following themes are supported out of the box:

  1. Astra
  2. Genesis
  3. Ollie
  4. Twenty Ten – Twenty Twenty Three

Ajaxify Comments should be compatible with most block themes. If Menu Helper can’t find the selectors, please leave a support request.

Technical Note

Since the plugin hooks into the theme on client-side to intercept the comment form submit process, and to add new comments without reloading the page, the plugin needs to access the DOM nodes using jQuery selectors. The plugin comes with default values for these selectors that were successfully tested with WordPress‘ default themes „Twenty Ten“, „Twenty Eleven“, „Twenty Twelve“, „Twenty Thirteen“, „Twenty Fourteen“, „Twenty Fifteen“, „Twenty Sixteen“. If required, the selectors can be customized to match your theme in the plugin’s settings.

Menu Helper is available to help you find the theme’s selectors.

Features

Ajaxify Comments is community supported. If you would like to add or change anything about the plugin, please consider assisting with the development on GitHub.

  • Post comments without a page reload.
  • Show error messages without a page reload.
  • Lazy load comments.
  • Automatically refresh comments.
  • Comment form validation.
  • Support for pages with multiple comment forms.
  • Support for threaded and moderated comments.
  • Compatible with most spam plugins.
  • Menu Helper to help you find the right selectors for your theme.
  • Appearance preview to see how the plugin will look on your site.
  • Simulate Ajaxify Comments enabled or disabled for testing and to compare the difference.
  • Translate and customize the default WordPress comment messages.

Questions/Help?

Please use the support forum to ask questions or to report issues.

Most questions can be resolved by checking out our docs site. https://docs.dlxplugins.com/v/ajaxify-comments – the Search is AI, so it should be able to find what you’re looking for.

Credits

This plugin was initially developed by Jan Jonas starting in 2012. Company weweave maintained the plugin from 2014-2022.

Snímky obrazovky

  • Ajaxify Comments demonstration with inline error messages displayed
  • Info overlay after the comment has successfully been posted
  • Error overlay with error message when posting a comment failed
  • Settings page (for customizing the plugin)

Instalace

See: Plugin Installation.

If you have activated the plugin and are just getting started, please see our Getting Started guide.

Nejčastější dotazy

I’m using WPML. How do I translate this plugin?

WPML is an advanced topic, but we’ve put together a guide to help you translate Ajaxify Comments using WPML.

Ajaxify Comments isn’t working when I install it. What’s wrong?

More than likely you need to set up your selectors. Selectors are an advanced topic, which is why we’ve created Menu Helper. Menu Helper will help you find the right selectors for your theme. Please see our Menu Helper guide for more information.

How do I enable lazy loading?

Lazy Loading is an advanced topic, but we’ve put together a guide to help you understand how to enable lazy loading.

Recenze

31. 10. 2023
The latest major update caused some issues on my site but the developer delivered a fix in less than 24 hours. I've been using this plugin for years and it's been working wonders.
29. 9. 2023 1 odpověď
From my experience I can say that this plugin is the Best Comment Optimization Plugin so far, without any bugs. I have tested "Ajaxify Comments Plugin" on two of my sites which are heavily loaded with comments. It instantly solved all my wordpress comment optimization related requirements in a second. It increased my website page speed by removing "Avoid Excessive DOM size" warning from Google page speed insights. The author of the plugin is very cooperative and seriously solves all problems raised by the users. I hope that the author never abandons this plugin, and keeps it updated regularly. All the Best!
4. 7. 2022
This plugin is very useful. By default WordPress show missed filed error in a comment in a new page, this behaviour is not really nice on my point of view and, in some cases, made user loose text that was previously inserted in the fields. I tested this plugin with the "Hestia" theme but was not working so I created a support topic and the support is present and replied. This is a good point! I tested the plugin with another theme "Customizr" and works. This plugin is very useful.
25. 6. 2021
Thanks a lot for sharing this, it solves a very common Wordpress issue.
Přečtěte si všech 89 recenzí

Autoři

Ajaxify Comments – Lazy Load and No Reload Comments je otevřený software. Následující lidé přispěli k vývoji tohoto pluginu.

Spolupracovníci

Přehled změn

2.1.1

  • Released 2023-12-01
  • Fixing issue with Ajaxify loading on all pages.
  • Added better error messages for third-party plugins who use wp_die to display errors.

2.1.0

  • Released 2023-10-25
  • New tabs: Added Integrations tab to showcase compatible plugins and a Lazy Load tab to control the lazy load options.
  • Lazy loading: Lazy Loading is now more clearly enabled or disabled via admin options.
  • Lazy Loading: Added External, Comments Scrolled Into Viewport, Dom Element Reached, and Page Scroll Length as triggers.
  • Lazy Loading: Deprecated Viewport Trigger in favor of Dom Element and Comment sections reached.
  • Lazy Loading: Deprecated None option in favor of External trigger.
  • Lazy Loading: Added scroll offset for lazy loading when targeting sections or elements.
  • Details in the Ajaxify Lazy Loading announcement post.

2.0.15

  • Released 2023-10-24
  • Fixing undefined callback error with OnAfterPostComment callback.

2.0.14

  • Released 2023-10-20
  • Resolving Ajax compatibility issue with Ninja Forms.
  • Successfully tested with WP 6.4.

2.0.11

  • Released 2023-10-06
  • Added WPML support to the plugin (docs on how to set this up).
  • Added duplicate comment label setting.
  • Added support for the Ollie theme.
  • Updated Menu Helper to better support block-enabled themes.

2.0.9

  • Released 2023-10-03
  • Added CSS class to overlay for easier styling.
  • Added WPML config for translatable string options.

2.0.7

  • Released 2023-09-30
  • Placed gettext call only on comment posting, improving performance.
  • Resolved improper functions.php inclusion.
  • New filter for changing options before they are output as JSON.

2.0.5

  • Released 2023-09-28
  • Refactoring lazy loading. It should be much more reliable now. It has been tested with Astra, Twenty Twenty-Three, and Genesis themes.
  • Updating Menu Helper to simulate lazy loading on or off.

2.0.1

  • Released 2023-09-27
  • Lazy loading was referencing the wrong variable. This has been fixed.

2.0.0

  • Released 2023-09-24
  • Renamed WP Ajaxify Comments to Ajaxify Comments in the admin. Updated branding.
  • Completely refreshed admin interface. The admin is now organized into tabs with quick saving and reset options.
  • Appearance tab allows for a real-time preview of the plugin’s appearance.
  • Appearance tab is a lot more user friendly, allowing for easy customization of the plugin’s appearance.
  • Added Support tab with helpful links to documentation and support.
  • Removed admin notice on plugins screen.
  • Replaced admin notice with contextual plugin row notice. This will display whenever debug mode is on, or if the plugin is disabled.
  • Added first-time-installation notice for new users who are new to setting up the plugin.
  • Added synthetic callback events for the available callbacks. This allows developers to hook into the plugin’s events without having to modify the plugin’s code.
  • Callbacks have a slightly more secure implementation and execution.
  • Added a tool called Selector Helper, which will help users find the right selectors for their theme.
  • Please read the announcement post for more information.

1.7.5

  • Released 2023-08-30
  • Ensuring compatibility with WordPress 6.3.