diff --git a/server/routes/install-routes.js b/server/routes/install-routes.js index 9755d89..a405a51 100644 --- a/server/routes/install-routes.js +++ b/server/routes/install-routes.js @@ -133,6 +133,8 @@ function installRoutes(app) { // TODO: Highlight tile that matches ?at=$xxx //const aroundId = req.query.at; + // Do these in parallel to avoid the extra time in sequential round-trips + // (we want to display the archive page faster) const [roomData, { events, stateEventMap }] = await Promise.all([ fetchRoomData(matrixAccessToken, roomIdOrAlias), fetchEventsInRange(