For an application I recently wrote, user input can sometimes be sizable - over 1 MB for a single textarea. The whole process of paste-then-spellcheck can take over 10 seconds.
I wrote a callback to show a spinning .gif with the message "Processing" as a paste callback:
$("#TA").on("paste", function () {
show_spinning_gif();
});
This works fine, and the gif appears almost immediately (though it is laggy). However the spellcheck still does not finish for several seconds more, and I need a way to now remove the gif "on-spellcheck-complete" before the user clicks the submit button.
Is there any way to capture the on-spellcheck-complete "event"in jQuery?