mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-28 19:08:50 +00:00
fix to enables the startup loader to continue if dynamically loaded
This commit is contained in:
1 parent
f6bdf06e45
commit
13fbfb6cac
1 file changed
+1
-1
@@ -119,7 +119,7 @@ var documentLoaded = NO;
|
||||
|
||||
function afterDocumentLoad(/*Function*/ aFunction)
|
||||
{
|
||||
if (documentLoaded)
|
||||
if (documentLoaded || document.readyState === "complete")
|
||||
return aFunction();
|
||||
|
||||
if (window.addEventListener)
|
||||
|
||||
Reference in new issue
Block a user