I am running a loop within a click event handler doing the following:
$(\" + data +
If you are in a browser that supports it, workers are ideal for this situation.
If not, use setTimeout after each computation to break the callstack and allow the browser to use time on rendering.
setTimeout