mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 06:41:38 +02: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?
|
(when visible?
|
||||||
[:*
|
[:*
|
||||||
[:img {:src (when visible? (cf/resolve-file-media object true))
|
[:img {:src (when visible? (cf/resolve-file-media object true))
|
||||||
|
:loading "lazy"
|
||||||
|
:decoding "async"
|
||||||
:draggable false}] ;; Also need to add css pointer-events: none
|
:draggable false}] ;; Also need to add css pointer-events: none
|
||||||
|
|
||||||
(let [renaming? (= renaming (:id object))]
|
(let [renaming? (= renaming (:id object))]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue