perf: reduce background return latency via session caching and async map rendering
This commit is contained in:
@ -136,10 +136,13 @@ function closePromoModal() {
|
||||
}
|
||||
|
||||
async function fetchData(isBackground = false) {
|
||||
await Promise.all([
|
||||
// Estas son actualizaciones asíncronas no urgentes para render principal
|
||||
Promise.all([
|
||||
routeStore.loadRoutes(undefined, false, isBackground),
|
||||
couponStore.loadCoupons({ active_only: true }, isBackground)
|
||||
]);
|
||||
|
||||
// Update super-urgente, dibuja los buses actuales en el mapa al instante
|
||||
updateActiveUnits();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user