lazyload images

This commit is contained in:
2020-10-15 15:02:06 +03:00
committed by Stepan Usatiuk
parent 3313c52086
commit c3e12aa250

View File

@@ -54,7 +54,10 @@ export class PhotoCardComponent extends React.PureComponent<
*/ */
> >
{fileExists ? ( {fileExists ? (
<img src={getPhotoThumbPath(this.props.photo, 512)}></img> <img
loading="lazy"
src={getPhotoThumbPath(this.props.photo, 512)}
></img>
) : ( ) : (
<Spinner /> <Spinner />
)} )}