loadjs icon indicating copy to clipboard operation
loadjs copied to clipboard

Waiting time between retries

Open jonathansp opened this issue 5 years ago • 2 comments

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?

jonathansp avatar Jul 14 '18 15:07 jonathansp

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?

amorey avatar Jul 15 '18 18:07 amorey

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
}

azizhk avatar Oct 07 '19 10:10 azizhk