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

Add support for configuring the frequency of progress update events #6378

Open
nick-michael opened this issue May 3, 2024 · 0 comments · May be fixed by #6379
Open

Add support for configuring the frequency of progress update events #6378

nick-michael opened this issue May 3, 2024 · 0 comments · May be fixed by #6379

Comments

@nick-michael
Copy link

Is your feature request related to a problem? Please describe.

It would be useful to be able to control the frequency of download progress update events. According to MDN, the browser standard for XHR is at most once every 50ms, while axios is using a mixture of every 300ms or every 500ms depending on whether we use the XHR, Fetch, or http adapter.

Describe the solution you'd like

A new config option in the AxiosRequestConfig - something like progressUpdateIntervalMs which will determine the minimum amount of time between progress updates (progress updates can take longer if no progress is made, this is expected behaviour)

Describe alternatives you've considered

No response

Additional context/Screenshots

No response

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

Successfully merging a pull request may close this issue.

1 participant