Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Prevent flickering / going back and forth #273

Closed

Description

@deje1011

First of all, thanks a lot for this module, it is awesome! I just had the problem that sometimes different requests weren't really combined to one loading bar but instead it was going back and forth multiple times. What fixed it for me was simply preventing to set the status to a lower value:

       var oldSet = cfpLoadingBar.set;
        cfpLoadingBar.set = function (n) {
            if (n > cfpLoadingBar.status()) {
                oldSet.apply(cfpLoadingBar, arguments);
            } 
        };

Is there any reason not to use this condition?
Cheers,
Jesse

Activity

  1. chieffancypants commented on Feb 17, 2016

    @chieffancypants
    Owner

    This isn't due to them not being combined into a single loading bar, but rather additional requests went out without responses, so technically, the percentage completed just dropped, and the loading bar visually shows this.

    Some initial work here: #150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions