diff --git a/bot_modules/05_main.js b/bot_modules/05_main.js index 0660ffd..e289653 100644 --- a/bot_modules/05_main.js +++ b/bot_modules/05_main.js @@ -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);