document.addEventListener("DOMContentLoaded", function () {
const video = document.getElementById("background-video");
const loader = document.getElementById("video-loader");
video.addEventListener("canplaythrough", function () {
// Hide the loader and show the video
loader.style.display = "none";
video.style.visibility = "visible";
});
});