diff --git a/docs/index.html b/docs/index.html
index 5b62a16..70bc1bd 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -201,7 +201,7 @@
script.src = 'resources/js/' + names[i] + '?randomId=' + radomTime;
script.onload = () => {
loadedCount++;
- if (loadedCount >= names.length - 1) setTimeout(() => { callback(); }, 150);
+ if (loadedCount >= names.length) setTimeout(() => { callback(); }, 150);
};
document.body.appendChild(script);
}