Skip to content

Commit

Permalink
Lazily load images
Browse files Browse the repository at this point in the history
  • Loading branch information
sebamarynissen committed Jan 26, 2025
1 parent 8d9d9dd commit 80a6235
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/list-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class DependencyLister {
html += `<div style="padding-bottom: 16px;"><a href="${websites[0]}">${websites[0]}</a></div>`;
}
if (pkg.info.images) {
html += `<img src="${pkg.info.images[0]}" style="width: 256px; height: 256px; object-fit: cover">`;
html += `<img src="${pkg.info.images[0]}" style="width: 256px; height: 256px; object-fit: cover" loading="lazy">`;
}
let common = new Set(
pkg.variants
Expand Down

0 comments on commit 80a6235

Please sign in to comment.