Skip to content

Commit

Permalink
feat(md): support image lazy loading
Browse files Browse the repository at this point in the history
close #18
  • Loading branch information
Octobug committed Dec 31, 2023
1 parent dc05aaa commit 87a3da0
Show file tree
Hide file tree
Showing 3 changed files with 266 additions and 405 deletions.
4 changes: 4 additions & 0 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,9 @@ export default defineConfigWithTheme<ThemeConfig>({
copyAttrs: "^class$",
});
},
image: {
// image lazy loading is disabled by default
lazyLoading: true
}
},
});
Loading

0 comments on commit 87a3da0

Please sign in to comment.