Restore image fallback check to 100ms
This commit is contained in:
parent
1906d2dd20
commit
25533f088c
@ -34,11 +34,11 @@ export default function ImageWithFallback({
|
||||
useEffect(() => { isLoadingRef.current = isLoading; }, [isLoading]);
|
||||
useEffect(() => {
|
||||
const timeout = setTimeout(() => {
|
||||
// If image is still loading after 150ms, force CSS animation
|
||||
// If image is still loading after 100ms, force CSS animation
|
||||
if (isLoadingRef.current) {
|
||||
setFadeFallbackTransition(true);
|
||||
}
|
||||
}, 150);
|
||||
}, 100);
|
||||
return () => clearTimeout(timeout);
|
||||
}, []);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user