Ajax-intensive page: reuse the same XMLHttpRequest object or create new one every time?
I'm working on some sort of online multiuser editor / coop interface, which will be doing a lot (as in, thousands) of ajax requests during one page lifetime. What would be best: ('best' in terms of stability, compatibility, avoiding trouble) Create one XMLHttpRequest object and reuse that for every HTTP request Create a new XMLHttpRequest object for every HTTP request Manage a dynamic 'pool' of XMLHttpRequest objects, creating a new one when starting a HTTP request and no existing object is available, and tagging a previously created object as 'available' when its last request was completed