mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 23:22:47 +08:00
chore: set image loading to lazy (#2733)
set image loading to lazy to avoid concurrent problem
This commit is contained in:
parent
aaec46a39c
commit
79b68222ff
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ const ResourceIcon = (props: Props) => {
|
|||
return (
|
||||
<SquareDiv className={classNames(className, "flex items-center justify-center overflow-clip")}>
|
||||
<img
|
||||
loading="lazy"
|
||||
className="min-w-full min-h-full object-cover border rounded dark:border-none"
|
||||
src={resource.externalLink ? resourceUrl : resourceUrl + "?thumbnail=1"}
|
||||
onClick={() => showPreviewImageDialog(resourceUrl)}
|
||||
|
|
Loading…
Reference in a new issue