Making 5000 XMLHttprequest objects
will never be a good idea.You should
make 4 at the start of your code and
reuse them, it is not useful to have
more that 4 making a requst of the
same URL at the same time as most
browser are limited to 4 or less connections
to the same URL at the same time.