1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-14 19:07:39 +01:00
Commit Graph

35 Commits

Author SHA1 Message Date
RealAngeleno
380c3ba000
add some information about the requirement for boardlinks to be enabled for the script to work 2023-04-28 22:36:11 -07:00
RealAngeleno
a2d9493602
undid since I wanted to do it with a PR 2023-04-28 22:35:25 -07:00
RealAngeleno
639785cd43
Added some small information about the requirement for boardlinks for script to load 2023-04-28 22:33:52 -07:00
ben2613
72f38933c2 Fix mobile browser hang issue when auto-reload by reducing DOM modification in forloop 2022-08-20 12:19:41 -04:00
czaks
ca42984ddc i18n auto-reload.js 2014-10-07 05:40:37 +02:00
czaks
606b39450d better synchronize the javascripts with 8chan 2014-10-05 18:30:47 +02:00
ScriptKi77y
7d5899d3a7 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-10-05 17:49:31 +02:00
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