live scan fix 2
This commit is contained in:
@@ -241,8 +241,10 @@ function boot() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (document.readyState === 'complete') {
|
if (document.readyState === 'complete') {
|
||||||
// Page already loaded (normal case when eval()'d dynamically)
|
// Page already loaded (normal case when eval()'d dynamically).
|
||||||
boot();
|
// Use setTimeout so the rest of the concatenated modules (like 06 and 07)
|
||||||
|
// have a chance to evaluate and expose their init functions before boot runs.
|
||||||
|
setTimeout(boot, 0);
|
||||||
} else {
|
} else {
|
||||||
// Fallback: wait for load event (shouldn't happen but safe to keep)
|
// Fallback: wait for load event (shouldn't happen but safe to keep)
|
||||||
window.addEventListener('load', boot);
|
window.addEventListener('load', boot);
|
||||||
|
|||||||
Reference in New Issue
Block a user