Skip to content

fix(offline): save packs after the page is open - #4

Merged
CodeDotJS merged 1 commit into
mainfrom
fix/background-offline
Oct 4, 2026
Merged

CodeDotJS merged 1 commit into
mainfrom
fix/background-offline

Conversation

@CodeDotJS

Copy link
Copy Markdown
Owner

Summary

  • Open the app as soon as the script is ready. The loading scene covers that wait only.
  • Save the offline files afterward: the app shell, then journey packs, then street tiles, two at a time and at low priority.
  • A search while that save is running still loads that trip, including the fare, from the network.

Test plan

  • Hard-refresh the preview and confirm the form appears without waiting for the journey files
  • Confirm a route still shows a fare while the background save is running
  • Confirm /snapshot/en/journeys/ requests start before /map-tiles/ requests

@CodeDotJS
CodeDotJS merged commit b5f2cd8 into main Oct 4, 2026
1 check passed
@CodeDotJS
CodeDotJS deleted the fix/background-offline branch October 4, 2026 05:44

This branch was successfully deployed

1 active deployment
preview — 0bd05050 Deployed Oct 4, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant