continue loading improve
This commit is contained in:
@@ -19,11 +19,13 @@ export const Layout: Component<LayoutProps> = (props) => {
|
||||
const [isSidebarPeeking, setIsSidebarPeeking] = createSignal(false);
|
||||
|
||||
onMount(() => {
|
||||
// Preload TaskDetail and QuickEntry in background
|
||||
setTimeout(() => {
|
||||
// Preload heavy components in background when idle
|
||||
const idleCallback = (window as any).requestIdleCallback || ((cb: any) => setTimeout(cb, 2000));
|
||||
idleCallback(() => {
|
||||
import("./TaskDetail");
|
||||
import("./QuickEntry");
|
||||
}, 500);
|
||||
import("./TaskEditor");
|
||||
});
|
||||
});
|
||||
|
||||
// Derived active task for the detail view
|
||||
|
||||
Reference in New Issue
Block a user