Merged
Conversation
…xy racing The URL loader was extremely slow and unreliable for external CSV deep links because fetches had no timeout (hanging forever on unresponsive proxies), proxies were tried sequentially, and 3 retry cycles with 1.5s delays added unnecessary wait time. Changes: - Add 8s timeout per fetch via AbortController (no more infinite hangs) - Race CORS proxies concurrently with Promise.any (fastest wins) - Reduce retries from 3 to 2 and delay from 1.5s to 0.5s - Properly throw on non-OK HTTP status instead of silently falling through - Add AbortSignal support so retries/reloads cancel in-flight requests - Prevent race conditions when user clicks Retry during an active load Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Promise.anyinstead of trying them sequentially — fastest response winsContext
Deep links like
?url=https://eddycfd.uber.space/misc/DesignExplorer_SelectedResults.csv(38KB) were taking forever to load and only worked after ~10 reloads. Root cause: each fetch had no timeout, proxies were tried one-by-one, and 3 retry cycles with 1.5s delays compounded the issue.Test plan
npm run check— 0 errorsnpm test— 40/40 passnpm run build— clean?url=https://eddycfd.uber.space/misc/DesignExplorer_SelectedResults.csv🤖 Generated with Claude Code