summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorScriptKi77y <ellocodoce@gmail.com>2014-09-30 01:58:23 -0500
committerczaks <marcin@6irc.net>2014-10-05 17:49:31 +0200
commit7d5899d3a7ba6ab10ad75c6710cdfd661ed59383 (patch)
tree40d66d844c7b21bcbeeee82da142eae9abb45738 /js
parent62b7e02050be1c9c9e561aea360da191177f344f (diff)
Quick fix to remove lag..
Executing a function to make a get request while simultaneously triggering a scroll event within the executed scroll event is probably not the best idea. This still needs work, there should probably be something else used to check for updates, such as an event where page has focus or something else that doesn't get called so many times, preferably something that reduces the timer instead. This is just a quick fix to stop all the lag on threads when scrolling near the bottom.
Diffstat (limited to 'js')
-rw-r--r--js/auto-reload.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/auto-reload.js b/js/auto-reload.js
index 8a4ab949..8a35335e 100644
--- a/js/auto-reload.js
+++ b/js/auto-reload.js
@@ -202,7 +202,7 @@ $(document).ready(function(){
}
end_of_page = true;
}
- }).trigger('scroll');
+ });
$('#update_thread').on('click', function() { poll(manualUpdate = true); return false; });