mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 23:37:48 +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)}
|
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 />
|
||||||
|
|||||||
Reference in New Issue
Block a user