Benjamin Southall
a68efaec3b
On post submission manually update / reload the page for auto-reload.js.
vor 7 Jahren
Benjamin Southall
501678d6bb
Fix auto-reload.js incorrect reply loading when the thread is just the opening post.
vor 7 Jahren
Benjamin Southall
2fae551db7
Feature Req: on/off button for auto-reload js #1 Fix insertafter selector so that new post gets autoloaded with the correct formatting and spacing.
vor 7 Jahren
Benjamin Southall
ad935a1aef
Feature Req: on/off button for auto-reload js #1 Fix incorrect insertAfter selector which prevented page from being updated when auto-reloaded and caused new post count to climb incorrectly in title of page
vor 7 Jahren
Benjamin Southall
3a2e2f4f6e
Initial Implementation of Feature Req: on/off button for auto-reload js #1, configurable in localstorage using options menu
vor 7 Jahren
Simon McFarlane
7ab9cc43d1
Revert to old auto-reload.js
with barrucadu's modifications
vor 9 Jahren
Michael Walker
ab24c2af57
Put threadlinks in a bar
vor 9 Jahren
Michael Walker
4f0be0d3c2
Use 8chan's auto-reload.js
vor 9 Jahren
czaks
ca42984ddc
i18n auto-reload.js
vor 9 Jahren
czaks
606b39450d
better synchronize the javascripts with 8chan
vor 9 Jahren
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.
vor 9 Jahren
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.
vor 9 Jahren
Bui
7aa2976524
wrap updater in ID span
vor 9 Jahren
topkek
71491bc9e9
Update auto-reload.js
vor 9 Jahren
topkek
9a096f5888
Update auto-reload.js
vor 9 Jahren
czaks
dbaeb395ac
auto-reload.js: it`s actually setTimeout, not setInterval, right?
vor 9 Jahren
czaks
ed5272f17d
auto-reload.js: don`t scroll up
vor 9 Jahren
8chan
5d8d20fcc5
Add timer to auto reload js
Conflicts:
js/auto-reload.js
vor 9 Jahren
Michael Walker
abaf80fd8a
Reset the delay to the minimum upon focussing the window (configurable)
vor 10 Jahren
Michael Walker
54fdd54e89
Make the delays configurable in settings.js
vor 10 Jahren
Michael Walker
97cfec836b
Add a maximum reload delay
vor 10 Jahren
Michael Walker
91a3016d27
Increase the poll_interval_delay when there are no posts
vor 10 Jahren
Michael Walker
0e18636fe6
Move the magic numbers out to variables
vor 10 Jahren
czaks
c043c42445
add copyright notices for javascripts based on commit history
Conflicts:
js/auto-reload.js
js/toggle-images.js
vor 10 Jahren
czaks
212a191ff4
auto-reload.js: add a number indicating new posts in the tab title
vor 10 Jahren
czaks
5817194be4
auto-reload.js: tweak timeouts, so now it gets new posts even if not at bottom
vor 10 Jahren
czaks
1c6b178dc5
add copyright notices for javascripts based on commit history
vor 10 Jahren
czaks
9039d9c4d9
fix previous documentations ( vichan-devel/Tinyboard#26 )
vor 10 Jahren
czaks
faf5fe1ef6
Revert "auto-reload.js: evade caching"
This reverts commit e9226dba46
.
vor 10 Jahren
czaks
e9226dba46
auto-reload.js: evade caching
vor 10 Jahren
czaks
371685140a
watch.js: watch board + watch thread + tool for pinning boards; currently may not work the best at mobiles and without compact-boardlist
vor 10 Jahren
czaks
fa28560982
auto-reload.js: add a number indicating new posts in the tab title
vor 10 Jahren
czaks
42ae3550f9
auto-reload.js: tweak timeouts, so now it gets new posts even if not at bottom
vor 10 Jahren
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.
vor 11 Jahren
Michael Save
6a9169657d
Merged js/ into https://github.com/savetheinternet/Tinyboard
vor 12 Jahren
Michael Save
2faaacd0f2
Update links in Javascript comments
vor 12 Jahren
Michael Save
d38801fc4e
auto-reload.js: poll every 5 seconds, not 500 ms
vor 12 Jahren
Michael Save
21a1152ebe
custom event for new posts, so auto-reload.js etc will work with forced-anon.js and post-hover.js
vor 12 Jahren
Michael Save
f48d338ce0
$('div.post.reply:last') is too specific; use $('div.post:last') or else it won't include the OP
vor 12 Jahren
Michael Save
af7b5b5d78
better scroll events
vor 12 Jahren
Michael Save
a3b3e1cc64
Don't check for new posts unless user is scrolled past the most recent one.
vor 12 Jahren
Michael Save
34301da174
local-time.js: convert times into user's timezone
vor 12 Jahren
Michael Save
ee54df825a
auto-reload.js: bringing AJAX to tinyboard
vor 12 Jahren