Remove delay for sponsors

pull/3882/head
Kamran Ahmed 2 years ago
parent 9b73d60c5d
commit b50935ecd6
  1. 5
      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(() => { useEffect(() => {
const timer = window.setTimeout(loadSponsor, 500); loadSponsor();
return () => window.clearTimeout(timer);
}, []); }, []);
if ($isSponsorHidden || !sponsor) { if ($isSponsorHidden || !sponsor) {

Loading…
Cancel
Save