RowanWeb

Defer for Contact Form 7

Take Contact Form 7 off the critical rendering path

Move CF7’s dependency scripts to the footer and load form styles asynchronously. Both settings are enabled on activation. Add lightweight spam checks or lazy-loaded captcha in Pro when you need them.

A contact form and a clock illustrating deferred loading

// examples

What changes when the page loads

Defer changes how Contact Form 7 resources are loaded. The diagrams show the loading flow.

CF7 resources in the document head
Document head
CF7 scriptswp-hooks · wp-i18n
Form stylesCSS Contact Form 7
can delay the first render
First renderPage content

Resource loading diagram. Loading time depends on your site.

What can delay the first render

Contact Form 7 loads wp-hooks, wp-i18n and form styles in the document head. The browser processes these resources before the initial page render.

The form needs these dependencies, but loading them early can delay the first screen. This also affects visitors who are just reading the page.

Defer lets you change script and CSS loading separately. The effect depends on your theme, other plugins and optimization settings.

Where should you start with your form?

Choose your task: take form resources off the critical rendering path, add lightweight spam checks or load captcha on interaction.

Page loading
Start with the two loading optimizations in the free version.
Simple spam bots
Enable the honeypot and submission time check if needed.
External captcha
In Pro, choose one provider and load it when a visitor interacts with a form.

// free version

What’s included in the free version

Find the settings under Contact → Performance. Loading optimizations are enabled by default. The honeypot and time trap are enabled separately.

Settings for moving dependency scripts and loading form CSS asynchronously
Both loading optimizations are enabled by default
Honeypot and time trap settings with a three-second threshold
Lightweight spam checks are enabled separately
  1. Check the loading settings

    Script optimization and asynchronous CSS are enabled on activation. Make sure your form looks right and sends messages.

  2. Add spam checks

    If needed, enable the hidden honeypot and the time trap. The default time threshold is 3 seconds.

  3. Watch the counter

    The settings page shows how many spam submissions were blocked. Detailed reasons and the log are available in Pro.

Test the form with your usual setup

After changing settings, test your form with your cache and optimization plugins. Send a test message and check that it arrives.

// compatibility

How Defer works with your site

Defer Pro

Load captcha when a visitor starts using a form. Bring existing settings over and see which checks stop spam.

Captcha on interaction

Choose reCAPTCHA v3, Yandex SmartCaptcha or Turnstile. One provider runs at a time, and its script loads on the first form interaction.

The captcha response is checked on your server.

Move existing captcha settings

Transfer keys from CF7’s built-in reCAPTCHA or Turnstile integration, or from Captcha by Yandex for Contact Form 7.

The built-in CF7 integration is disabled after migration. Old Yandex captcha tags can be removed with a separate button.

See why spam was blocked

View a breakdown by check, a 30-day chart and a log of what bots entered in your forms.

The log is kept for 30 days, without IP addresses. Field values are limited to 100 characters.

Pro license

For one site: $10 per year or $50 for a lifetime license. Checkout is handled by Freemius. After purchase, you’ll receive a license key and a link to the Pro version.

Installation, choosing a captcha provider and moving existing keys are covered in the setup guide.

Buy Pro — $10/year

Frequently asked questions

Installation, spam checks and testing your forms.

What should I enable after installation?

With Contact Form 7 active, moving dependency scripts to the footer and loading CSS asynchronously work immediately. The honeypot and time trap are off by default. Enable them on the Performance screen if needed.

How do I check that the form still works?

Open the page in a fresh browser session, check its appearance and send a test message. Submit the form again. If you use caching or optimization, test after clearing the cache as well.

Can the form briefly appear without styles?

Yes. Asynchronous CSS can briefly show the form before its styles arrive. If this is noticeable on your site, turn off asynchronous CSS and keep the script optimization enabled.

Should I enable these checks if I already use anti-spam?

You can enable the honeypot and time trap separately. If another solution already protects your forms, consider whether you need additional checks. Both are off by default.

Why might the time trap stop a submission?

It marks submissions as spam when they arrive faster than the configured threshold or without JavaScript. The default threshold is 3 seconds. Time is measured in the visitor’s browser and the threshold can be changed in settings.

What data is sent to external services?

Script optimization, asynchronous CSS and lightweight spam checks make no external requests. In Pro, the selected captcha provider receives requests to load and validate captcha. Freemius has a separate optional opt-in for licensing and updates.

Does Defer save submitted entries?

Defer handles resource loading and spam protection. To keep an entry archive in WordPress, use the separate Entries Database for Contact Form 7 plugin.