[fix] Prevent delay while displaying pacman loader.

This commit is contained in:
opi 2016-02-04 12:05:51 +01:00
parent 5d043ff0d3
commit 312eba3b7c
2 changed files with 2 additions and 10 deletions

View file

@ -81,11 +81,7 @@
$('#masthead .logout-btn').hide();
store.set('path-1', '#/login');
if ($('div.loader').length === 0) {
setInterval(function () {
if (!app.loaded && $('div.loader').length === 0) {
$('#main').append('<div class="loader loader-content"></div>');
}
}, 500);
$('#main').append('<div class="loader loader-content"></div>');
}
c.checkInstall(function(isInstalled) {

View file

@ -74,11 +74,7 @@
loaded = false;
if ($('div.loader').length === 0) {
setInterval(function () {
if (!loaded && $('div.loader').length === 0) {
$('#main').append('<div class="loader loader-content"></div>');
}
}, 500);
$('#main').append('<div class="loader loader-content"></div>');
}
jQuery.ajax({