Add preloading of ad image
This commit is contained in:
1 parent
1d1541386f
commit
75a6c9133c
1 file changed
+4
@@ -28,6 +28,10 @@ export function StickyTopSponsor(props: StickyTopSponsorProps) {
|
||||
return;
|
||||
}
|
||||
|
||||
// preload the image so that we don't see a flicker
|
||||
const img = new Image();
|
||||
img.src = sponsor.imageUrl;
|
||||
|
||||
// hide the onboarding strip when the sponsor is visible
|
||||
isOnboardingStripHidden.set(true);
|
||||
}, [sponsor]);
|
||||
|
||||
Reference in new issue
Block a user