perf(startup): remove blocking components loader wait; defer component instantiation until navigation; trigger initial cluster load immediately

This commit is contained in:
2025-08-31 14:27:33 +02:00
parent 8b0267ea2a
commit ac6c2fbb80
3 changed files with 19 additions and 19 deletions

View File

@@ -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...');