mirror of
https://github.com/penpot/penpot.git
synced 2025-07-19 13:07:19 +02:00
⚡ Lazy load dashboard grid images
This commit is contained in:
parent
a397f25cb2
commit
1a831eddc5
1 changed files with 7 additions and 3 deletions
|
@ -90,7 +90,9 @@
|
|||
(when visible?
|
||||
(if thumbnail-uri
|
||||
[:img {:class (stl/css :grid-item-thumbnail-image)
|
||||
:src thumbnail-uri}]
|
||||
:src thumbnail-uri
|
||||
:loading "lazy"
|
||||
:decoding "async"}]
|
||||
i/loader-pencil))]
|
||||
|
||||
;; OLD
|
||||
|
@ -99,7 +101,9 @@
|
|||
:ref container}
|
||||
(when visible?
|
||||
(if thumbnail-uri
|
||||
[:img.grid-item-thumbnail-image {:src thumbnail-uri}]
|
||||
[:img.grid-item-thumbnail-image {:src thumbnail-uri
|
||||
:loading "lazy"
|
||||
:decoding "async"}]
|
||||
i/loader-pencil))])))
|
||||
|
||||
;; --- Grid Item Library
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue