Skip to content

Commit

Permalink
Merge pull request #151 from 1-Byte/image-loading
Browse files Browse the repository at this point in the history
Load thumbnails lazily
  • Loading branch information
magnusmanske authored Jan 19, 2024
2 parents 9120e88 + 9673fb2 commit 89d423f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render.rs
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ impl Render for RenderHTML {
"{}/wiki/Special:Redirect/file/{}?width={}",
&server_url, &file, &thumnail_size
);
format!("<div class='card thumbcard'><a target='_blank' href='{}'><img class='card-img thumbcard-img' src='{}'/></a></div>",url,src)
format!("<div class='card thumbcard'><a target='_blank' href='{}'><img class='card-img thumbcard-img' src='{}' loading='lazy' /></a></div>",url,src)
}
None => String::new(),
}
Expand Down

0 comments on commit 89d423f

Please sign in to comment.