I have a dueling listbox with a 'Select All' option, and the javascript behind the 'Select All' is:
$('#' + source).remove().appendTo('#' + destination);
In situations where the source listbox contains a few thousand entries, I get a "Warning: Unresponsive Javascript" message in Firefox only (Chrome works fine). Worst of all, if I click 'continue' after the message, the action never completes. The FF version is 41.0.1.
If I understand what FF is doing, I guess it suspects that there is a long (possibly recursive) loop and tries to intercept it, but I don't think this is the case, and I can't release to people if it behaves this way.
Is there any way I can alter the javascript so FF doesn't complain? Is there a more efficient pure JS way to accomplish the .appendTo() that doesn't cause FF distress?