mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 07:27:47 +01:00
do not preload images on hover
This commit is contained in:
@@ -80,11 +80,13 @@ export class PhotoCardComponent extends React.PureComponent<
|
||||
src={getPhotoThumbPath(this.props.photo, PreviewSize)}
|
||||
className={this.state.loaded ? "loaded" : "notLoaded"}
|
||||
onLoad={() => this.setLoaded(true)}
|
||||
/*
|
||||
onMouseEnter={() =>
|
||||
preloadImage(
|
||||
getPhotoThumbPath(this.props.photo, LargeSize),
|
||||
)
|
||||
}
|
||||
*/
|
||||
></img>
|
||||
) : (
|
||||
<Spinner />
|
||||
|
||||
Reference in New Issue
Block a user