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

the second request do not trigger the loading bar in case two consecutive requests #359

Open
Simplici opened this issue Jun 5, 2017 · 1 comment

Comments

@Simplici
Copy link

Simplici commented Jun 5, 2017

What version of angular-loading-bar are you using?
0.9.0
What version of AngularJS are you using?
1.5.9
What browsers are affected?
chrome (others not tested)
Please provide either a JSFiddle, Plunkr example that replicates the issue

Please describe the issue
when there are two consecutive request like:
request1.then(request2)

both of them takes longer than latencyThreshold. but only the first reuqest trigger the loading bar. the loading bar disappears after the first reuqest complete and do not show again during the scond request.
What did you expect to happen?
the loading bar should not disappear before the second request completed.

@Simplici Simplici changed the title the second request do not trigger the loading bar in case two consecutive request the second request do not trigger the loading bar in case two consecutive requests Jun 5, 2017
@Simplici
Copy link
Author

i have found the reason and solution by oneself.

the problem is that i have set the latencyThreshold to 500ms, which is the same as the threshold used to aggregate two requests.

I changed the latencyThreshold to 400ms, it works well.

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

1 participant