live scan fix 2
This commit is contained in:
@@ -241,8 +241,10 @@ function boot() {
|
||||
}
|
||||
|
||||
if (document.readyState === 'complete') {
|
||||
// Page already loaded (normal case when eval()'d dynamically)
|
||||
boot();
|
||||
// Page already loaded (normal case when eval()'d dynamically).
|
||||
// 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 {
|
||||
// Fallback: wait for load event (shouldn't happen but safe to keep)
|
||||
window.addEventListener('load', boot);
|
||||
|
||||
Reference in New Issue
Block a user