mirror of
https://github.com/usatiuk/photos.git
synced 2025-10-28 23:37:48 +01:00
lazyload images
This commit is contained in:
@@ -54,7 +54,10 @@ export class PhotoCardComponent extends React.PureComponent<
|
||||
*/
|
||||
>
|
||||
{fileExists ? (
|
||||
<img src={getPhotoThumbPath(this.props.photo, 512)}></img>
|
||||
<img
|
||||
loading="lazy"
|
||||
src={getPhotoThumbPath(this.props.photo, 512)}
|
||||
></img>
|
||||
) : (
|
||||
<Spinner />
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user