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:
parent
9b73d60c5d
commit
b50935ecd6
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user