-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fallback to tap prefetch strategy on slow connection #9092
Conversation
🦋 Changeset detectedLatest commit: d0938b4 The changes in this PR will be included in the next version bump. Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Implementation looks clean. Fine with not having tests for now as it's tricky to test for slow connections.
NOTE: since this is a minor change, we'll queue this up for the minor release on next Wednesday.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy with these changesets as long as the one that changes the prefetch fallback starts with "Changes..." and describes a change from old behaviour to new! 🙌
Co-authored-by: Sarah Rainsberger <[email protected]>
Co-authored-by: Sarah Rainsberger <[email protected]> Co-authored-by: Bjorn Lu <[email protected]>
Changes
tap
prefetch strategy on slow connection, instead of bailing.ignoreSlowConnection
option to prefetch API, which lets manually prefetch even on data saver mode or slow connection.Testing
Tested on test cases added in this PR #8951
Docs
Docs: withastro/docs#5393
This PR also has changesets and JSDoc for review.