We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2c6d16 commit a638283Copy full SHA for a638283
069-infinite scroll posts/script.js
@@ -35,7 +35,7 @@ async function showPosts() {
35
});
36
}
37
38
-// Refactor showLoading to Prevent Race Conditions
+// Refactor Loading Logic to Prevent Race Conditions
39
async function fetchAndShowPosts() {
40
page++;
41
await showPosts();
@@ -49,7 +49,7 @@ async function showLoading() {
49
isLoading = false;
50
51
52
-// Debounce the Filter Input
+// Debounce the Filter Input for Better Performance
53
function debounce(functionToDebounce, delay = 300) {
54
let timeoutId;
55
return (...args) => {
0 commit comments