Skip to content

Commit

Permalink
Add some buffer to let the fetched render finish
Browse files Browse the repository at this point in the history
  • Loading branch information
xypnox committed Jan 11, 2024
1 parent 391e619 commit 147562b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Loading.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
window.addEventListener("load", function () {
const loading = document.getElementById("loading");
if (!loading) return;
loading.classList.add("hidden");
this.setTimeout(() => {
loading.classList.add("hidden");
}, 100);
this.setTimeout(() => {
loading.remove();
}, 2000);
Expand Down

0 comments on commit 147562b

Please sign in to comment.