mirror of
https://github.com/penpot/penpot.git
synced 2026-03-06 02:01:09 +00:00
⚡ Add lazy loading and async decoding to graphics
This commit is contained in:
@@ -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))]
|
||||
|
||||
Reference in New Issue
Block a user