fix Ox.App in Firefox 3.6 to show loading screen, fixes #393
This commit is contained in:
parent
1a6da64b6b
commit
f919d64044
3 changed files with 9 additions and 6 deletions
|
|
@ -81,13 +81,14 @@ window.Ox = {
|
|||
}
|
||||
|
||||
function loadScript(script, callback) {
|
||||
var element = document.createElement('script');
|
||||
var element = document.createElement('script'),
|
||||
head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement;
|
||||
element.onload = callback;
|
||||
element.src = path + script + '?' + parseInt(Math.random() * 1000000);
|
||||
element.type = 'text/javascript';
|
||||
document.head.appendChild(element);
|
||||
head.appendChild(element);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue