Commit Graph

28 Commits

Author SHA1 Message Date
ScriptKi77y
2ece97d685 Scroll hook thread polling adjusttment.
Fixed an issue with the scroll hook thread polling.
Users scrolling near the bottom of the page are making upwards of 7-10 requests a second to the site.

Added a small timer using the "poll_interval_mindelay" value to prevent unnecessary polling, one is enough during this minimum time delay.
2014-10-05 17:49:30 +02:00
Bui
7aa2976524 wrap updater in ID span 2014-10-05 17:48:51 +02:00
topkek
71491bc9e9 Update auto-reload.js 2014-10-05 17:48:07 +02:00
topkek
9a096f5888 Update auto-reload.js 2014-10-05 17:48:07 +02:00
czaks
dbaeb395ac auto-reload.js: it`s actually setTimeout, not setInterval, right? 2014-09-25 06:32:53 +02:00
czaks
ed5272f17d auto-reload.js: don`t scroll up 2014-09-25 06:31:40 +02:00
8chan
5d8d20fcc5 Add timer to auto reload js
Conflicts:
	js/auto-reload.js
2014-09-25 06:30:55 +02:00
Michael Walker
abaf80fd8a Reset the delay to the minimum upon focussing the window (configurable) 2014-05-05 20:54:40 +01:00
Michael Walker
54fdd54e89 Make the delays configurable in settings.js 2014-05-05 20:51:51 +01:00
Michael Walker
97cfec836b Add a maximum reload delay 2014-05-05 19:33:57 +01:00
Michael Walker
91a3016d27 Increase the poll_interval_delay when there are no posts 2014-05-05 19:33:57 +01:00
Michael Walker
0e18636fe6 Move the magic numbers out to variables 2014-05-05 19:33:57 +01:00
czaks
1c6b178dc5 add copyright notices for javascripts based on commit history 2014-01-19 14:27:24 +01:00
czaks
9039d9c4d9 fix previous documentations ( vichan-devel/Tinyboard#26 ) 2014-01-19 13:40:29 +01:00
czaks
faf5fe1ef6 Revert "auto-reload.js: evade caching"
This reverts commit e9226dba46.
2013-12-31 15:39:47 +01:00
czaks
e9226dba46 auto-reload.js: evade caching 2013-12-29 04:38:16 +01:00
czaks
371685140a watch.js: watch board + watch thread + tool for pinning boards; currently may not work the best at mobiles and without compact-boardlist 2013-12-29 01:10:35 +01:00
czaks
fa28560982 auto-reload.js: add a number indicating new posts in the tab title 2013-12-23 17:31:47 +01:00
czaks
42ae3550f9 auto-reload.js: tweak timeouts, so now it gets new posts even if not at bottom 2013-12-23 16:34:44 +01:00
undido
41ee55a1b2 Update auto-reload.js
check if viewing a thread or viewing a board page when updating a thread so new posts do not appear at bottom of page while viewing threads list not sure if this was because of an outdated template but I thought I should point out this as it may affect html templates no matter the code as the banner code is the only code that checks where the user currently is.
2013-03-20 00:56:59 -03:00
Michael Save
2faaacd0f2 Update links in Javascript comments 2012-03-31 11:13:11 +11:00
Michael Save
d38801fc4e auto-reload.js: poll every 5 seconds, not 500 ms 2012-03-18 23:57:38 +11:00
Michael Save
21a1152ebe custom event for new posts, so auto-reload.js etc will work with forced-anon.js and post-hover.js 2012-03-18 23:55:01 +11:00
Michael Save
f48d338ce0 $('div.post.reply:last') is too specific; use $('div.post:last') or else it won't include the OP 2012-03-16 09:08:03 +11:00
Michael Save
af7b5b5d78 better scroll events 2012-03-15 20:40:52 +11:00
Michael Save
a3b3e1cc64 Don't check for new posts unless user is scrolled past the most recent one. 2012-03-15 16:42:58 +11:00
Michael Save
34301da174 local-time.js: convert times into user's timezone 2012-03-15 16:19:26 +11:00
Michael Save
ee54df825a auto-reload.js: bringing AJAX to tinyboard 2012-03-15 14:44:15 +11:00