Skip to content

Commit

Permalink
refactor: add img loading lazy
Browse files Browse the repository at this point in the history
  • Loading branch information
xjh22222228 committed Jan 11, 2025
1 parent b446cc2 commit 4077424
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .prettierrc.js → .prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
export default {
semi: false,
singleQuote: true,
};
1 change: 1 addition & 0 deletions src/components/FileCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
@load="imgLoaded = true"
@error="hasError = true"
alt=""
loading="lazy"
/>
</div>
<div class="filename">{{ data.name }}</div>
Expand Down

0 comments on commit 4077424

Please sign in to comment.