If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

The problem is that (IMO) Copy in JS is shallow, and garbage collection in closure is a little unreliable, plus event handler is memory costly. It's a little confused me how those temp variables are...

It is not the case, I think. The inProcess flag is safe to assure that all requests are done separatedly. The problem is with call_a_function() method. If this is a normal function, say, calculating...

There is a simple algorithm to randomly change the orders of numbers in an array. I wrote it in PHP, but clearly, it is very easy to change this to JS. I don't know the inner algorithm in JS built-in...