perf(startup): remove blocking components loader wait; defer component instantiation until navigation; trigger initial cluster load immediately
This commit is contained in:
@@ -8,14 +8,7 @@ document.addEventListener('DOMContentLoaded', async function() {
|
||||
logger.debug('App: Creating framework instance...');
|
||||
const app = window.app;
|
||||
|
||||
// Wait for components to be ready (loader ensures constructors exist)
|
||||
try {
|
||||
if (typeof window.waitForComponentsReady === 'function') {
|
||||
await window.waitForComponentsReady();
|
||||
}
|
||||
} catch (e) {
|
||||
logger.warn('App: Components loader timeout; proceeding anyway');
|
||||
}
|
||||
// Components are loaded via script tags in order; no blocking wait required
|
||||
|
||||
// Create view models
|
||||
logger.debug('App: Creating view models...');
|
||||
|
||||
Reference in New Issue
Block a user