perf: eager preconnections and map loading to cut initial boot by 3s

This commit is contained in:
2026-03-04 11:05:08 -05:00
parent b89de437b2
commit b45f53417a
3 changed files with 9 additions and 1 deletions

View File

@ -14,6 +14,7 @@ import { useTaxiStore } from './stores/taxi'
import { useShuttleStore } from './stores/shuttle'
import { useCouponStore } from './stores/coupon'
import { supabase } from '@/supabase'
import { useGoogleMaps } from '@/composables/useGoogleMaps'
// useFavoritesStore ya importado arriba (línea 8)
// Initialize theme store
@ -22,6 +23,10 @@ const { locale } = useI18n()
const themeStore = useThemeStore()
const authStore = useAuthStore()
const favoritesStore = useFavoritesStore()
const { loadMaps } = useGoogleMaps()
// Iniciar descarga asíncrona masiva de Google Maps al bootear VUE (Ahorra ~3 seg de espera en MapView)
loadMaps()
const isSplashScreen = computed(() => route.name === 'splash')
const isAuthScreen = computed(() => {