mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 07:41:43 -05:00
⚡ Add lazy loading and async decoding to graphics
This commit is contained in:
parent
9ce8c2d580
commit
0721fc9d80
1 changed files with 2 additions and 0 deletions
|
@ -140,6 +140,8 @@
|
|||
(when visible?
|
||||
[:*
|
||||
[:img {:src (when visible? (cf/resolve-file-media object true))
|
||||
:loading "lazy"
|
||||
:decoding "async"
|
||||
:draggable false}] ;; Also need to add css pointer-events: none
|
||||
|
||||
(let [renaming? (= renaming (:id object))]
|
||||
|
|
Loading…
Add table
Reference in a new issue