diff --git a/src/pages/Landing.tsx b/src/pages/Landing.tsx index 5ea06a19..00881d8a 100644 --- a/src/pages/Landing.tsx +++ b/src/pages/Landing.tsx @@ -13,14 +13,17 @@ import { const Landing: React.FC = () => { const [isLoading, setIsLoading] = useState(true); - useEffect(() => { - // Delay for LoadingAnimation - const timer = setTimeout(() => { - setIsLoading(false); - }, 3000); + useEffect(() => { + const handleLoad = () => { + setTimeout(() => { + setIsLoading(false); + }, 1000); + }; - return () => clearTimeout(timer); - }, []); + window.addEventListener('load', handleLoad); + + return () => window.removeEventListener('load', handleLoad); + }, []); if (isLoading) { return ;