In regards to concurrent ajax requests, i have looked at this page:
How many concurrent AJAX (XmlHttpRequest) requests are allowed in popular browsers?
But what if onload i have js script creating many http objects with the code:
// JavaScript Document
//declare xmlhttp object
var xmlhttp = false;
var xmlhttp2 = false;
//determine browser/connection type
if (window.XMLHttpRequest)
{
xmlhttp = new XMLHttpRequest();
xmlhttp2 = new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
xmlhttp2 = new ActiveXObject("Microsoft.XMLHTTP");
}
I have about 6 different js scripts which are all tailored to perform slightly different ajax functions.
My question is if i have 6-10 different xmlhttp objects being created on pageload, will it somehow be an issue?
Furthermore, even if i have 20 different tailored ajax scripts, aside from what i mentioned above, as long as i dont have more than 3 running at the same time they can all exist toegther, as long as they use different global variables, correct?