New Version Specific Chosen Event ‘Firing’ Kills Forms Usability
-
Hi,
The wonderful plugin, seems to do two big computing efficiency mistakes:
1) The first being, ‘firing’ event for all form’s hundreds of fields, and not designing the JS/JQuery to ‘fire’ only for those specific fields where it’s asked to manipulate the show/hide (toggle) of other <div> element.
2) The second, choosing to use CHANGE events which follow typing of each character within a given field (see line 25 of the file ‘scripts_es6.js’ and respectively line 156 of the file ‘script.js’:
var wpcf7cf_change_events = ‘input.wpcf7cf onblur.wpcf7cf click.wpcf7cf onselect.wpcf7cf’;
I first trued to limit the ‘wpcf7cf_change_events’ VAR to less events as ‘onblur.wpcf7cf click.wpcf7cf’ which speeded-up the form typing, however apparently form drop-down data stored by the plugin was in delay, so it had the previous element selected. This data storing fixed to contain real-time data and not previous selection to-be fixed by you, may solve lots of speed loss. I couldn’t use this technique, as it didn’t properly work only with the drop-down menus (select field type).
Then, I reverted to older plugin version, which works much faster, although not on high typing speed.
What I would suggest the following two fixes:
1) The JQuery event to follow only the specific field-names’ as coded in the ‘conditional field’ tab of the CF7 plugin. For example, this would mean:
$(‘[name=”field_name[]”]’).on(“keypress keyup blur paste change mouseleave”, function(event){….}
2) The JQuery event to be better targeting field event changes, without ‘firing’ for each character typed within a field, as suggested above, solving the drop-down data tracking delay.
3) Possibly, have the ‘conditional-field’ function have a built-in delay having it operate only every 2000ms, so it won’t slow typing input, possibly reducing functions animation built-in existing delay, so operability is not damaged.
Regards, Ehud
- The topic ‘New Version Specific Chosen Event ‘Firing’ Kills Forms Usability’ is closed to new replies.