Hello @patrickshepherd
Thank you so much for using our plugin. Please note that the plugin is the platform that allows developers to create their forms, and includes multiple operations and tools to generate forms as complex as projects require. However, the final form performance will depend on the form developer. For example, the following equations return the same result:
(function(){
let result;
if(fieldname1 == 'A') result=10;
if(fieldname1 == 'B') result=100;
if(fieldname1 == 'C') result=1000;
if(fieldname1 == 'D') result=10000;
if(fieldname1 == 'E') result=100000;
if(fieldname1 == 'F') result=1000000;
if(fieldname1 == 'G') result=10000000;
return result;
})()
(function(){
let result;
switch(fieldname1){
case 'A': result=10; break;
case 'B': result=100; break;
case 'C': result=1000; break;
case 'D': result=10000; break;
case 'E': result=100000; break;
case 'F': result=1000000; break;
case 'G': result=10000000; break;
}
return result;
})()
({A:10, B:100, C:1000, D:10000, E:100000, F:1000000, G:10000000})[fieldname1]
All of them are valid, but the last equation’s performance is much better than the first equation, and better than the second equation.
What I try to explain is that there is a direct relationship between the form performance and its implementation, and the form performance affects the page’s performance.
Regardless of the fact that the form should always be optimized, there is a way to insert it into the page without affecting its performance.
Please use the iframe and asynchronous attributes in the form’s shortcode. For example, if your form ID is 123, insert its shortcode as follows:
[CP_CALCULATED_FIELDS id="123" iframe="1" asynchronous="1"]
If you are inserting the form visually through its editor module, there is a checkbox to load it into an iframe, and in the box for entering additional attributes, you should enter asynchronous="1"
Learn more about the shortcode attributes by reading the following section in the plugin documentation:
https://cff.dwbooster.com/documentation#insertion-page
Best regards.