diff --git a/App.tsx b/App.tsx index 19b1f43..4bd803a 100644 --- a/App.tsx +++ b/App.tsx @@ -34,7 +34,7 @@ import webVitalsService from './src/services/webVitals'; import { handleCacheVersionUpdate } from './src/utils/cacheVersioning'; import { appLogger, logger } from './src/utils/logger'; import { handleNotificationReceived } from './src/utils/notificationHandlers'; -import { prefetchExternalResources } from './src/utils/resourceHints'; +import { warmCriticalCaches } from './src/services/cacheWarming'; // Keep the splash screen visible while we fetch resources SplashScreen.preventAutoHideAsync(); @@ -106,12 +106,7 @@ const App = () => { await new Promise(resolve => setTimeout(resolve, 300)); startupProgressService.completeStep('auth'); - // 4. Initial data fetch (simulate or add real fetch) - startupProgressService.startStep('data'); - await new Promise(resolve => setTimeout(resolve, 500)); - startupProgressService.completeStep('data'); - - // 5. Warm critical caches (user profile + home feed) in parallel + // 3. Warm critical caches (user profile + home feed) in parallel await warmCriticalCaches(); } catch (e) { console.warn('Error during app initialization:', e);