Performance enhancements
-
Thanks for the plugin.
I’m using it for the first time and it does it’s job well ??
Btw. I’m using the current version of the free plugin: Version 3.0.1But I’m a little confused about the loading behavior of the JS & CSS files.
Contact Form 7 has this great feature to load JS & CSS only when needed. Check out the official documentation: https://contactform7.com/loading-javascript-and-stylesheet-only-when-it-is-necessary/
I’m wondering if you could improve your plugin by loading JS & CSS only when CF7 loads the corresponding files?
This could probably be achieved by simply adding CF7 (
contact-form-7
) as a dependency, right?Or is there a reason why scripts and styles are loaded on every page, even if it doesn’t contain contact forms?
And you could get rid of jQuery Migrate by using
jquery-core
as a dependency instead ofjquery
.
- The topic ‘Performance enhancements’ is closed to new replies.