do not preload images on hover

This commit is contained in:
2020-12-26 08:13:12 +00:00
committed by Stepan Usatiuk
parent c0302e5aac
commit b1adf9afe1

View File

@@ -80,11 +80,13 @@ export class PhotoCardComponent extends React.PureComponent<
src={getPhotoThumbPath(this.props.photo, PreviewSize)} src={getPhotoThumbPath(this.props.photo, PreviewSize)}
className={this.state.loaded ? "loaded" : "notLoaded"} className={this.state.loaded ? "loaded" : "notLoaded"}
onLoad={() => this.setLoaded(true)} onLoad={() => this.setLoaded(true)}
/*
onMouseEnter={() => onMouseEnter={() =>
preloadImage( preloadImage(
getPhotoThumbPath(this.props.photo, LargeSize), getPhotoThumbPath(this.props.photo, LargeSize),
) )
} }
*/
></img> ></img>
) : ( ) : (
<Spinner /> <Spinner />