mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-23 14:25:17 +02:00
Performance: Only digest in requestAnimationFrame
This commit is contained in:
@@ -30,7 +30,8 @@ module.exports = function DeviceServiceFactory($http, socket) {
|
||||
function notify(event) {
|
||||
if (event.important) {
|
||||
// Handle important updates immediately.
|
||||
digest()
|
||||
//digest()
|
||||
window.requestAnimationFrame(digest)
|
||||
}
|
||||
else {
|
||||
if (!digestTimer) {
|
||||
|
||||
Reference in New Issue
Block a user