summaryrefslogtreecommitdiffstats
path: root/assets/js/watch.js
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2019-06-16 12:34:00 -0500
committerOmar Roth <omarroth@protonmail.com>2019-06-16 12:55:17 -0500
commit17edfd65736fde44d16e5fe9b4e68e637246a127 (patch)
treeeacfa846130e16811a86f31a34726fb89a99ff64 /assets/js/watch.js
parent458e9d6cc77c467a9ae61b5baf151978de92cf31 (diff)
downloadinvidious-17edfd65736fde44d16e5fe9b4e68e637246a127.tar.gz
invidious-17edfd65736fde44d16e5fe9b4e68e637246a127.tar.bz2
invidious-17edfd65736fde44d16e5fe9b4e68e637246a127.zip
Shorten timeout for AJAX
Diffstat (limited to 'assets/js/watch.js')
-rw-r--r--assets/js/watch.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/assets/js/watch.js b/assets/js/watch.js
index fb4ab4b4..2f027b1a 100644
--- a/assets/js/watch.js
+++ b/assets/js/watch.js
@@ -134,7 +134,7 @@ function get_playlist(plid, retries = 5) {
var xhr = new XMLHttpRequest();
xhr.responseType = 'json';
- xhr.timeout = 20000;
+ xhr.timeout = 10000;
xhr.open('GET', plid_url, true);
xhr.onreadystatechange = function () {
@@ -212,7 +212,7 @@ function get_reddit_comments(retries = 5) {
'&hl=' + video_data.preferences.locale;
var xhr = new XMLHttpRequest();
xhr.responseType = 'json';
- xhr.timeout = 20000;
+ xhr.timeout = 10000;
xhr.open('GET', url, true);
xhr.onreadystatechange = function () {
@@ -289,7 +289,7 @@ function get_youtube_comments(retries = 5) {
'&thin_mode=' + video_data.preferences.thin_mode;
var xhr = new XMLHttpRequest();
xhr.responseType = 'json';
- xhr.timeout = 20000;
+ xhr.timeout = 10000;
xhr.open('GET', url, true);
xhr.onreadystatechange = function () {
@@ -360,7 +360,7 @@ function get_youtube_replies(target, load_more) {
'&continuation=' + continuation;
var xhr = new XMLHttpRequest();
xhr.responseType = 'json';
- xhr.timeout = 20000;
+ xhr.timeout = 10000;
xhr.open('GET', url, true);
xhr.onreadystatechange = function () {