continue loading improve

This commit is contained in:
2026-01-30 18:00:12 -06:00
parent 40f09b796f
commit 1d10863887
3 changed files with 23 additions and 16 deletions
+4 -3
View File
@@ -26,14 +26,15 @@ const App: Component = () => {
onCleanup(() => removeListener());
// Background preload of other views
setTimeout(() => {
// Background preload of other views when idle
const idleCallback = (window as any).requestIdleCallback || ((cb: any) => setTimeout(cb, 1000));
idleCallback(() => {
// CriticalView is now static
import('./views/UrgencyView');
import('./views/PriorityView');
import('./views/MatrixView');
import('./views/SettingsView');
}, 100);
});
});
return (