mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 14:21:13 +00:00
Add lazy loading of images. Fixes #329
This commit is contained in:
parent
08aa1bb511
commit
140564afb4
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ export class PictrsImage extends Component<PictrsImageProps, any> {
|
||||||
<img
|
<img
|
||||||
src={this.src("jpg")}
|
src={this.src("jpg")}
|
||||||
alt={this.alt()}
|
alt={this.alt()}
|
||||||
|
loading="lazy"
|
||||||
className={`
|
className={`
|
||||||
${!this.props.icon && !this.props.iconOverlay && "img-fluid "}
|
${!this.props.icon && !this.props.iconOverlay && "img-fluid "}
|
||||||
${
|
${
|
||||||
|
|
Loading…
Reference in a new issue