Skip to content
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

Is there anyway to disable slow network detection? #25

Open
tuananh opened this issue Jun 4, 2018 · 2 comments
Open

Is there anyway to disable slow network detection? #25

tuananh opened this issue Jun 4, 2018 · 2 comments
Labels
question Further information is requested

Comments

@tuananh
Copy link

tuananh commented Jun 4, 2018

I'm on wifi but network here is quite slow and navigator.connection.effectiveType always return 3g.

Is there any option to disable slow network detection?

@stereobooster
Copy link
Owner

You can override algorithm which decides this: defaultShouldAutoDownload

@stereobooster stereobooster added the question Further information is requested label Jun 4, 2018
@stereobooster
Copy link
Owner

I still need to figure out an appropriate heuristic for auto-download. Maybe:

  • allow developer to disable auto-download at all. This is possible for every browser except Chrome, if you do not pass threshold
  • maybe enable auto-download for 3g by default
  • read size of image from headers and decide based on this info

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants