Skip to content

Commit

Permalink
loader timeout set
Browse files Browse the repository at this point in the history
  • Loading branch information
bmiit145 committed Mar 1, 2024
1 parent 3dfa078 commit bc3bbaa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@
window.addEventListener("load", function() {
// Hide the loader when the page has finished loading
var loader = document.querySelector("#ftco-loader");

// Set a timeout to hide the loader after 5 seconds
setTimeout(function() {
loader.style.display = "none";
}, 5000);
loader.style.display = "none";

});


Expand Down

0 comments on commit bc3bbaa

Please sign in to comment.