do not lazyload thumbnails

to avoid reflow
This commit is contained in:
2020-10-21 11:22:21 +00:00
committed by Stepan Usatiuk
parent 2ceec84721
commit 88a9d5bce3
2 changed files with 0 additions and 2 deletions

View File

@@ -37,7 +37,6 @@ export const PhotoComponent: React.FunctionComponent<IPhotoComponentProps> = (
<div id="photoView">
<img
id="photoImg"
loading="lazy"
className={loaded ? "loaded" : "notLoaded"}
onLoad={() => setLoaded(true)}
src={getPhotoThumbPath(props.photo, 2048)}

View File

@@ -76,7 +76,6 @@ export class PhotoCardComponent extends React.PureComponent<
>
{fileExists ? (
<img
loading="lazy"
src={getPhotoThumbPath(this.props.photo, 512)}
className={this.state.loaded ? "loaded" : "notLoaded"}
onLoad={() => this.setLoaded(true)}