🎉 Add lazy loading of thumbnails on dashboard

This commit is contained in:
Andrey Antukh 2022-09-28 09:40:14 +02:00
parent 8fec5af55e
commit 748499a26f
5 changed files with 250 additions and 165 deletions

View file

@ -131,3 +131,15 @@
(js/performance.clearMeasures end-mark)
#js {:duration duration
:avg avg})))
(defn now
[]
(js/performance.now))
(defn tpoint
"Create a measurement checkpoint for time measurement of potentially
asynchronous flow."
[]
(let [p1 (now)]
#(js/Math.floor (- (now) p1))))