diff options
author | friendica <info@friendica.com> | 2012-07-25 22:55:43 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-07-25 22:55:43 -0700 |
commit | 7bdbb8331c8341e6c3ea0b463f0a742d06972245 (patch) | |
tree | aefe7364c818bd29d24800b2ce28d894f946f85d /js/main.js | |
parent | 21b3dc9c27be50e73944eaec97001ad1279400f1 (diff) | |
download | volse-hubzilla-7bdbb8331c8341e6c3ea0b463f0a742d06972245.tar.gz volse-hubzilla-7bdbb8331c8341e6c3ea0b463f0a742d06972245.tar.bz2 volse-hubzilla-7bdbb8331c8341e6c3ea0b463f0a742d06972245.zip |
picking up the page load times a bit
Diffstat (limited to 'js/main.js')
-rw-r--r-- | js/main.js | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/js/main.js b/js/main.js index 1454dd0b5..bdc1c83e3 100644 --- a/js/main.js +++ b/js/main.js @@ -154,6 +154,27 @@ window.location.href=window.location.href } + + // start live update + + if($('#live-network').length) { src = 'network'; liveUpdate(); } + if($('#live-profile').length) { src = 'profile'; liveUpdate(); } + if($('#live-community').length) { src = 'community'; liveUpdate(); } + if($('#live-notes').length) { src = 'notes'; liveUpdate(); } + if($('#live-display').length) { + if(liking) { + liking = 0; + window.location.href=window.location.href + } + } + if($('#live-photos').length) { + if(liking) { + liking = 0; + window.location.href=window.location.href + } + } + + if(data.network == 0) { data.network = ''; $('#net-update').removeClass('show') @@ -188,24 +209,6 @@ }); - // start live update - - if($('#live-network').length) { src = 'network'; liveUpdate(); } - if($('#live-profile').length) { src = 'profile'; liveUpdate(); } - if($('#live-community').length) { src = 'community'; liveUpdate(); } - if($('#live-notes').length) { src = 'notes'; liveUpdate(); } - if($('#live-display').length) { - if(liking) { - liking = 0; - window.location.href=window.location.href - } - } - if($('#live-photos').length) { - if(liking) { - liking = 0; - window.location.href=window.location.href - } - } }) ; } |