continue loading improve
This commit is contained in:
+4
-3
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user