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 (
|
return (
|
||||||
<SquareDiv className={classNames(className, "flex items-center justify-center overflow-clip")}>
|
<SquareDiv className={classNames(className, "flex items-center justify-center overflow-clip")}>
|
||||||
<img
|
<img
|
||||||
|
loading="lazy"
|
||||||
className="min-w-full min-h-full object-cover border rounded dark:border-none"
|
className="min-w-full min-h-full object-cover border rounded dark:border-none"
|
||||||
src={resource.externalLink ? resourceUrl : resourceUrl + "?thumbnail=1"}
|
src={resource.externalLink ? resourceUrl : resourceUrl + "?thumbnail=1"}
|
||||||
onClick={() => showPreviewImageDialog(resourceUrl)}
|
onClick={() => showPreviewImageDialog(resourceUrl)}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue