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
+5 -3
View File
@@ -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