forked from 0x2620/oxjs
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
|
|
@ -68,6 +68,7 @@ Ox.loadFile = (function() {
|
|||
var cache = {};
|
||||
return function (file, callback) {
|
||||
var element,
|
||||
head = document.head || document.getElementsByTagName( "head" )[0] || document.documentElement,
|
||||
request,
|
||||
type = file.split('.').pop(),
|
||||
isImage = type != 'css' && type != 'js';
|
||||
|
|
@ -94,7 +95,7 @@ Ox.loadFile = (function() {
|
|||
element.onload = addFileToCache;
|
||||
}
|
||||
}
|
||||
document.head.appendChild(element);
|
||||
head.appendChild(element);
|
||||
} else {
|
||||
addFileToCache();
|
||||
}
|
||||
|
|
@ -135,4 +136,4 @@ Ox.loadFile = (function() {
|
|||
!error && addFileToCache();
|
||||
}
|
||||
};
|
||||
}());
|
||||
}());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue