• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

OneBusAway / wayfinder / 22211069672

20 Feb 2026 04:16AM UTC coverage: 79.585% (-0.005%) from 79.59%
22211069672

push

github

web-flow
Merge pull request #347 from OneBusAway/fix/non-blocking-startup-preload

Fix server unresponsive on startup by making cache preload non-blocking

1685 of 1861 branches covered (90.54%)

Branch coverage included in aggregate %.

0 of 2 new or added lines in 1 file covered. (0.0%)

10739 of 13750 relevant lines covered (78.1%)

4.22 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/hooks.server.js
1
import { preloadRoutesData } from '$lib/serverCache.js';
×
2
import { preloadOtpVersion } from '$lib/otpServerCache.js';
3

4
export async function handle({ event, resolve }) {
×
NEW
5
        // Preload caches in background — don't block requests (or health checks)
×
NEW
6
        Promise.all([preloadRoutesData(), preloadOtpVersion()]);
×
7
        return resolve(event);
×
8
}
×
9

10
export { getRoutesCache, getAgenciesCache, getBoundsCache } from '$lib/serverCache.js';
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc