From b50935ecd622e88a0b1804dd56bf1e04d1a1a59d Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Wed, 3 May 2023 04:09:09 +0100 Subject: [PATCH] Remove delay for sponsors --- src/components/PageSponsor.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/PageSponsor.tsx b/src/components/PageSponsor.tsx index 3f12949a2..dcf31266f 100644 --- a/src/components/PageSponsor.tsx +++ b/src/components/PageSponsor.tsx @@ -53,10 +53,9 @@ export function PageSponsor(props: PageSponsorProps) { }); }; - // We load the sponsor after 1second of the page load + // We load the sponsor after 1 second of the page load useEffect(() => { - const timer = window.setTimeout(loadSponsor, 500); - return () => window.clearTimeout(timer); + loadSponsor(); }, []); if ($isSponsorHidden || !sponsor) {