Contact Form 7 without jQuery

Contact Form 7 is a popular and completely free and open source WordPress plugin to build simple contact forms on your WordPress website.

It is known that the plugin inserts jQuery and styles on every post and page if activated, even if it does not contain a contact form. That bloats every page, especially if you or your plugins or theme don’t use jQuery.

There a different ways to tackle this problem. The greenerWP WordPress plugin now contains a simple optimization. If activated, jQuery and Styles will only be inserted into your page when you use the contact form shortcode on this page. There will be some edge cases when this won’t work. In that case, disable the optimization. You might also leave a comment to this post describing the situation, and we might find a solution.

Leave a Reply

Your email address will not be published. Required fields are marked *