Skip to content

Commit 1fbee04

Browse files
committed
refactor: simplify load animation logic by removing unnecessary requestAnimationFrame and resetting body class state
1 parent d9b12b9 commit 1fbee04

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎docs/index.html‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,12 +1242,12 @@ <h3>No project upload</h3>
12421242
await loadReleaseData();
12431243
}
12441244

1245+
document.body.classList.remove("loaded");
1246+
12451247
window.addEventListener("load", () => {
1246-
requestAnimationFrame(() => {
1247-
setTimeout(() => {
1248-
document.body.classList.add("loaded");
1249-
}, 3000);
1250-
});
1248+
setTimeout(() => {
1249+
document.body.classList.add("loaded");
1250+
}, 3000);
12511251
});
12521252

12531253
document.addEventListener("DOMContentLoaded", () => {

0 commit comments

Comments
 (0)