contact-form-7-conditional-fields icon indicating copy to clipboard operation
contact-form-7-conditional-fields copied to clipboard

Improve JS performance. (Debounce Parameter Made Controlled by Users)

Open currenge opened this issue 5 years ago • 1 comments

Hi Jules,

I suggest you make this debounce parameter accessible for user controlling it.

This parameter is placed on line 109 of the file “cf7-conditional-fields / js / scripts.js “ (version 1.8.7).

At my form of about 10 divscreens and about 40+ conditional logic (you may see them attached) using your plugin, the value 100 (ms?) made the form slow down, while the a value as 400 allows it to fly...

currenge avatar Nov 16 '20 09:11 currenge

After the problems with CF7 5.4 are fixed, I will give this a look. The quick fix seems to be to indeed increase this value, but I will check if I can find another way to improve performance without damaging the response time.

pwkip avatar Mar 08 '21 16:03 pwkip