manifest / performance / contact-form-7-fix-asset-loads
Contact Form 7 - Fix Asset Loads
WordPress plugin. Add-on for Contact Form 7. Only loads JavaScript and CSS on pages where forms appear.
by Corey Salzano · github.com/csalzano/contact-form-7-fix-asset-loads · website
★ 3stars
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/csalzano/contact-form-7-fix-asset-loads/archive/refs/heads/main.zipDeclares an update source (https://github.com/csalzano/contact-form-7-fix-asset-loads), so updates arrive through the plugin's own updater.
From the readme
Contact Form 7 - Fix Asset Loads
Contact Form 7 loads its JavaScript and CSS on every front-end page, even when no form is present. That unused payload slows pages that do not need it.
This add-on waits until a form actually renders, then loads the assets. Pages without a form never get the extra CSS or JS. Styles that would have run in the header are deferred to the footer so the decision can happen after the content.
No settings. Activate it alongside Contact Form 7 and it just works.