Skip to content

Commit 83f9891

Browse files
committed
beta v1.2.2 - reduced delay times intended for rate-limit avoidance on less powerful devices
1 parent b91e54f commit 83f9891

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<a href="../donate.html"><p id="donate" class="banner-text">donate</p></a>
2121
</div>
2222
<div class="about-text">
23-
<p style="color: aqua">beta v1.2.1<br></p>
23+
<p style="color: aqua">beta v1.2.2<br></p>
2424
<p style="display: inline-block;">The Chess Library is an open-source database of 700,000+ chess games, run by
2525
<a href="https://www.github.com/gitpushjoe" style="word-wrap: break-word;"><nobr>a single college student.</nobr></a> It's currently in open beta testing right now so if you have any suggestions, bug findings, questions, or would like to help expand the database,
2626
please share using the donate link above. (Note: The back-end web scraping and data formatting scripts will be up soon.)<br>&nbsp;<br><br>Sources:<br>

database.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ function getSearchRanges(transpositions) {
336336
}
337337
}
338338
document.branches.branches = branches;
339-
const timeout = [...requests].some(x => !document.directory.search.cache.has(x)) ? 500 : 0;
339+
const timeout = [...requests].some(x => !document.directory.search.cache.has(x)) && !window.matchMedia("@media (min-width:480px)") ? 500 : 0;
340340
setTimeout((r) => pullGames(Array.from(r), $("#collection").val()), timeout, requests);
341341
return new ScheduledTask(gamesObserver, [requests.size]).setSleep(5);
342342
}

script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ function getValidMoves(startingSquare, board, kingCapturable=false) {
12161216
}
12171217

12181218
let broadcastTimer = 0;
1219-
let broadcastSpeed = 500;
1219+
let broadcastSpeed = window.matchMedia("@media (min-width:480px)") ? 250 : 500;
12201220

12211221
let mouseDownFrames = 0;
12221222
let mouseDown = false;

0 commit comments

Comments
 (0)