show loading bar on postbacks in safari
Opened this issue · 0 comments
AmarieEA commented
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