export function prefetchMobileRoutes() { if (typeof window === 'undefined') return; const schedule = (callback: () => void) => { if ('requestIdleCallback' in window) { (window as Window & { requestIdleCallback: (cb: () => void) => number }).requestIdleCallback(callback); return; } window.setTimeout(callback, 1200); }; schedule(() => { void import('./DashboardPage'); void import('./EventsPage'); void import('./EventDetailPage'); void import('./EventPhotosPage'); void import('./EventTasksPage'); void import('./NotificationsPage'); void import('./ProfilePage'); void import('./SettingsPage'); }); }