Contributors: mtph9
Tags: Contact Form 7, performance, speed optimization
Requires at least: 4.5
Tested up to: 6.4.2
Requires PHP: 8.0
Stable tag: 0.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Improves website loading speed by lazy loading reCaptcha for Contact Form 7.
Usually, reCaptcha scripts load immediately in Contect Form 7. Regardless of whether you use the async or defer strategy, reCaptcha script execution requires a significant amount of device resources, which is very noticeable on mobile devices.
The idea behind the plugin is simple: load and execute reCaptcha only when the user starts interacting with the contact form. This results in a significant increase in loading speed, but it can lead to worse spam detection (see FAQ).
This section describes how to install the plugin and get it working.
- Upload
lazy-recaptcha-for-cf7.zip
to the/wp-content/plugins/
directory and unzip it - Activate the plugin through the 'Plugins' menu in WordPress
It is likely to decrease. Therefore, it is advisable to use this method only if there are no other ways to improve the speed.