perf: optimize splash screen loading and remove unused telemetry code
This commit is contained in:
@ -7,7 +7,6 @@ import { useMapStore } from "@/stores/map";
|
||||
import { useBusStopStore } from "@/stores/busStop";
|
||||
import { useCouponStore } from "@/stores/coupon";
|
||||
import { useGoogleMaps } from "@/composables/useGoogleMaps";
|
||||
import { telemetryService } from "@/services/telemetryService";
|
||||
import { analyticsService } from "@/services/analyticsService";
|
||||
import { getImageUrl } from "@/utils/imageUrl";
|
||||
|
||||
@ -212,9 +211,11 @@ onMounted(async () => {
|
||||
// Add click outside listener
|
||||
document.addEventListener('click', handleClickOutside);
|
||||
|
||||
// Load routes, bus stops and promos
|
||||
await routeStore.loadRoutes();
|
||||
await couponStore.loadCoupons({ active_only: true });
|
||||
// Load routes, bus stops and promos in parallel
|
||||
await Promise.all([
|
||||
routeStore.loadRoutes(),
|
||||
couponStore.loadCoupons({ active_only: true })
|
||||
]);
|
||||
|
||||
// Sync from query params if coming from Schedules or external link
|
||||
const queryRouteId = router.currentRoute.value.query.routeId as string;
|
||||
|
||||
Reference in New Issue
Block a user