mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 12: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
|
||||
src={this.src("jpg")}
|
||||
alt={this.alt()}
|
||||
loading="lazy"
|
||||
className={`
|
||||
${!this.props.icon && !this.props.iconOverlay && "img-fluid "}
|
||||
${
|
||||
|
|
Loading…
Reference in a new issue