ScriptKi77y
e9352a2ea8
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.
2014-09-30 01:58:23 -05:00
ScriptKi77y
0f7220fa40
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-09-29 22:02:57 -05:00
Bui
156d207469
wrap updater in ID span
2014-09-29 05:18:00 +09:00
topkek
cd227d6509
Update auto-reload.js
2014-09-28 00:40:00 +01:00
topkek
128adfd999
Update auto-reload.js
2014-09-28 00:16:16 +01:00
czaks
bb4ebebe89
Merge https://github.com/vichan-devel/vichan
...
Conflicts:
js/auto-reload.js
stylesheets/catalog.css
stylesheets/style.css
2014-09-26 13:40:02 +02:00
8chan
4bb8eb49e8
Merge /home/service/www/http
...
Conflicts:
inc/instance-config.php
js/auto-reload.js
2014-09-25 20:55:05 +00:00
8chan
4ecdcd292f
auto reload better
2014-09-25 20:50:09 +00: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
anonfagola
25bf9f88f5
Update auto-reload.js
...
Changed favicon_au.png to static/favicon_au.png
2014-09-24 18:27:17 -07:00
anonfagola
5bbfc85c0c
Added icon changing when thread updated.
...
makeIcon should also have the little *bleep* sound.
2014-09-24 18:23:15 -07:00
8chan
beff737c9e
Add timer to auto reload js
2014-09-24 21:30:57 +00:00
8chan
416a48838c
Add timer to auto reload js
2014-09-24 21:30:57 +00:00
8chan
4eb31555fc
Add update button to auto-reload.js
2014-09-24 20:14:02 +00: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 e9226dba4618e5904ffe8ae6dc241a33ec5efe11.
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