Controlling “wpcf7cf_change_time_ms” Value so JS effectuation is controlled
-
Hi @jules-colle,
Good afternoon! How are you?
First, let me thank you for the great plugin you have created!
I would start by reminding you of an issue I had which was forms slowing down, when using your great plugin, when such forms had about 40 JS condition logic different conditions on each one of them.
The background is, on “Contact Form 7 – Conditional Fields“ plugin version 1.8.7, I was able to find a walk-around solution, by manually changing the “wpcf7cf_change_time_ms” parameter value to be set to 300. This made the plugin “run” its function testing the need for its contion-logic intervention, on intervals as long as 300 ms. Such time intervals decreased the “load” on the user’s browser, allowing a good user experience (in contrary to setting smaller such parameter value as 100 ms which even caused typing inside fields to be wlosed down, possibly due to a call of the “change” JQuert event which trigered lots of JS each key stroke).
The above change was achieved by the setting the value in the code, which was done in the location: cf7-conditional-fields / js / scripts.js line 109, as followed:
var wpcf7cf_change_time_ms = window.wpcf7cf_running_tests ? 0 : 300;
Sadly, on the then newer version 1.9.14, change_time parameters appeared in like three different places in the code, and I did not manage to achieve a similar slowing interval of effectuation effect. For example, one of these instances of the above “wpcf7cf_change_time_ms” parameter is on line 123, where setting the below value did not achieve the same slowing effectuation effect:
var wpcf7cf_change_time_ms = 300;
I attached four print-screen shots out of the version 1.9.14 code which show the above:
image 1Note: I may remove these print screens in a week or two, after you get to see them.
May I ask for guidance, how can I achieve this slowing down effect, with the latest plugin version 1.9.15?
Regards, ziegel
- The topic ‘Controlling “wpcf7cf_change_time_ms” Value so JS effectuation is controlled’ is closed to new replies.