Skip to content

Commit

Permalink
Disable progress bar because it takes a lot of CPU.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Nov 19, 2016
1 parent 67cd9f8 commit 0b3c586
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions public/js/live.js
Expand Up @@ -174,13 +174,13 @@ function update_accounts() {
}

function poll() {
var progress = $("#progress")[0];
progress.style.transition = "";
progress.style.width = "0";
setTimeout(function() {
progress.style.transition = "all 29500ms linear";
progress.style.width = "100%";
}, 300);
// var progress = $("#progress")[0];
// progress.style.transition = "";
// progress.style.width = "0";
// setTimeout(function() {
// progress.style.transition = "all 29500ms linear";
// progress.style.width = "100%";
// }, 300);

var facebook = JSON.parse(localStorage.facebook);
if (facebook.accounts.length > 0) {
Expand Down

0 comments on commit 0b3c586

Please sign in to comment.