1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-03-18 14:19:43 +01:00

Remove delay for sponsors

This commit is contained in:
Kamran Ahmed 2023-05-03 04:09:09 +01:00
parent 9b73d60c5d
commit b50935ecd6

View File

@ -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) {