perf: reduce background return latency via session caching and async map rendering

This commit is contained in:
2026-03-04 10:43:58 -05:00
parent 90bb93be17
commit b89de437b2
3 changed files with 8 additions and 5 deletions

View File

@ -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();
}