Performance: Only digest in requestAnimationFrame

This commit is contained in:
Gunther Brunner
2014-06-11 15:14:17 +09:00
parent 00e436c323
commit 3798b72401

View File

@@ -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) {