angular-loading-bar icon indicating copy to clipboard operation
angular-loading-bar copied to clipboard

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

Open Simplici opened this issue 8 years ago • 1 comments

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 avatar Jun 05 '17 09:06 Simplici

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.

Simplici avatar Jun 19 '17 09:06 Simplici