From 0721fc9d8053172c97d2aaf23a898e6360579cf6 Mon Sep 17 00:00:00 2001 From: Aitor Date: Tue, 29 Aug 2023 11:03:11 +0200 Subject: [PATCH] :zap: Add lazy loading and async decoding to graphics --- frontend/src/app/main/ui/workspace/sidebar/assets/graphics.cljs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/src/app/main/ui/workspace/sidebar/assets/graphics.cljs b/frontend/src/app/main/ui/workspace/sidebar/assets/graphics.cljs index 73fd831dc4..33f54b614f 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/assets/graphics.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/assets/graphics.cljs @@ -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))]