General performance improvements on workspace.

This commit is contained in:
Andrey Antukh 2020-05-01 18:05:13 +02:00
parent 00168d392b
commit 2ac42d15b6
10 changed files with 111 additions and 13 deletions

View file

@ -32,3 +32,12 @@
(reify rx/IDisposable
(-dispose [_]
(js/cancelIdleCallback sem)))))
(defn raf
[f]
(js/window.requestAnimationFrame f))
(defn idle-then-raf
[f]
(schedule-on-idle #(raf f)))