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

show loading bar on postbacks in safari #340

Open
AmarieEA opened this issue Nov 21, 2016 · 0 comments
Open

show loading bar on postbacks in safari #340

AmarieEA opened this issue Nov 21, 2016 · 0 comments

Comments

@AmarieEA
Copy link

AmarieEA commented Nov 21, 2016

I want to show the loading bar on postbacks.

In my loading-bar.js I add:

window.onbeforeunload = function () {
                  if (window.beforeUnloadHandler) {
                      var result = window.beforeUnloadHandler();
                      if (!(result === undefined))
                          return result;
                  }

                  cfpLoadingBar.start();
};

It is works perfectly in chrome but don't work in safari. Also I noticed that if I set breakpoint after cfpLoadingBar.start(); the loadind bar is showed.

angular-loading-bar v0.9.0

@AmarieEA AmarieEA changed the title show loading bar on postbacks show loading bar on postbacks in safari Nov 21, 2016
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