SoFunction
Updated on 2025-03-10

Preloading js code for css or javascript


= function () {

var i = 0,
max = 0,
o = null,

// list of stuff to preload
preload = [
'http://tools./pagr2/<?php echo $id; ?>.',
'http://tools./pagr2/<?php echo $id; ?>.',
'http://tools./pagr2/<?php echo $id; ?>.'
],
isIE = ('Microsoft') === 0;

for (i = 0, max = ; i < max; i += 1) {

if (isIE) {
new Image().src = preload[i];
continue;
}
o = ('object');
= preload[i];

// IE stuff, otherwise 0x0 is OK
// = 1;
// = 1;
// = "hidden";
// = "text/plain"; // IE
= 0;
= 0;

// only FF appends to the head
// all others require body
(o);
}
};