Hi @agolovachev,
Glad to help.
Apart from the Google reCaptcha scripts, CFX makes two requests (at most) on the frontend, for the following files:
cookies.js - 4KB
frontend.js - 8KB
So not sure where “18 extra requests” is coming from, certainly it is not CFX.
For the Google reCaptcha scripts, that’s not something that any plugin has control over, as the service and scripts are provided wholesale by Google. So any/every contact form plugin that uses Google reCaptcha will require/call the same number of reCaptcha-related scripts.
As for the performance measurements you mention, I’m guessing there are other factors involved slowing things down. CFX is super lightweight by design, I use it as the contact form on my own site, Perishable Press. You can measure and compare performance for that page and others, they all return relatively similar results.
“Any ideas how this could be mitigated?”
First I would look at all other variables that are contributing to the performance of your page(s). That includes things like other plugins, scripts, the theme, web hosting, server configuration, and other factors. Then for CFX’s part, there is a setting that you can enable to ensure that the CFX scripts are loaded only on the page that displays the contact form:
CFX Advanced tab > “Targeted Loading”
Other than that, there is not much that can be tweaked performance-wise, as the plugin already is as dialed in for optimal performance. It’s basically two scripts and some markup added to the page.
I am open to any suggestions if you have them, or any questions, feedback, etc. Glad to help however possible.