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

Waiting time between retries #71

Open
jonathansp opened this issue Jul 14, 2018 · 2 comments
Open

Waiting time between retries #71

jonathansp opened this issue Jul 14, 2018 · 2 comments

Comments

@jonathansp
Copy link

numRetries is a good approach to get around to mobile network issues.

Retrying a couple of time in a row does not mean that loadjs will load successfully. Maybe waiting for some seconds before trying again would be better.

Could you please add an optional parameter in order to have loadjs wait some seconds between retries?

@amorey
Copy link
Member

amorey commented Jul 15, 2018

Can you describe the scenario you're running into in a bit more detail? Is the purpose of a timer to deal with connectivity issues?

@azizhk
Copy link

azizhk commented Oct 7, 2019

Yup the purpose of the timer is to space out between requests hoping that the internet comes back on.

Something like:

{
  numRetries: 5,
  retryWaitTime: 1000 // 1 second
}

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

No branches or pull requests

3 participants