summaryrefslogtreecommitdiff
path: root/itjs
diff options
context:
space:
mode:
Diffstat (limited to 'itjs')
-rw-r--r--itjs/boot.js23
1 files changed, 13 insertions, 10 deletions
diff --git a/itjs/boot.js b/itjs/boot.js
index 50e7a26..059bd78 100644
--- a/itjs/boot.js
+++ b/itjs/boot.js
@@ -163,16 +163,19 @@ function it_boot_getloader()
{
var result = null;
- try
- {
- result = new XMLHttpRequest();
- }
- catch (e)
+ if (!navigator.userAgent.match(/iPhone|iP.d/)) // Do not use XMLHttpRequest on iOS devices as it does not use cache
{
- var classnames = [ 'MSXML2.XMLHTTP', 'Microsoft.XMLHTTP' ];
+ try
+ {
+ result = new XMLHttpRequest();
+ }
+ catch (e)
+ {
+ var classnames = [ 'MSXML2.XMLHTTP', 'Microsoft.XMLHTTP' ];
- for (var i in classnames)
- try { result = new ActiveXObject(classnames[i]); break; } catch (e) {}
+ for (var i in classnames)
+ try { result = new ActiveXObject(classnames[i]); break; } catch (e) {}
+ }
}
return result;
@@ -233,11 +236,11 @@ function it_boot(file, isretry)
it_boot.sequence += "n";
if (window.opera || (document.all && navigator.platform.indexOf("Mac") >= 0))
- document.write('<sc'+'ript type="text/javascript" src="'+it_boot_addparam(file, 'boot=1')+'"><\/sc'+'ript>');
+ document.write('<sc'+'ript type="text/javascript" src="'+it_boot_addparam(file, 'boot=1&script=1')+'"><\/sc'+'ript>');
else if (dom)
{
var tag = doc.createElement("script");
- tag.src = it_boot_addparam(file, 'boot=1&retry=1');
+ tag.src = it_boot_addparam(file, 'boot=1&script=1&retry=1');
dom.appendChild(tag);
}
else