mirror of
https://github.com/penpot/penpot.git
synced 2025-07-22 14:47:14 +02:00
🎉 Add lazy loading of thumbnails on dashboard
This commit is contained in:
parent
8fec5af55e
commit
748499a26f
5 changed files with 250 additions and 165 deletions
|
@ -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))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue