Add optimization for Contact Form 7 #6241
Labels
3rd party compatibility
Issues related to 3rd party compatibility like theme, plugin or hosting
needs: documentation
Issues which need to create or update a documentation
priority: medium
Issues which are important, but no one will go out of business.
type: enhancement
Improvements that slightly enhance existing functionality and are fast to implement
Milestone
Is your feature request related to a problem? Please describe.
Contact Form 7 enqueues JavaScript on every page regardless of if you use a form.
Describe the solution you'd like
WP Rocket should include an optimization module specifically for CF7 that corrects this behavior, see #6215
Describe alternatives you've considered
This optimization was originally proposed directly for CF7 in rocklobster-in/contact-form-7#1278 - however the maintainer did not want to add the change, saying instead that site owners should add code to change the behavior.
Additional context
See PR and CF7 Issue/PR.
The text was updated successfully, but these errors were encountered: