angular-poller icon indicating copy to clipboard operation
angular-poller copied to clipboard

requestAnimationFrame ($$rAF) backend

Open xrmx opened this issue 9 years ago • 1 comments

Would be nice to optionally support a requestAnimationFrame backend. requestAnimationFrame has the advantage of being lighter on resource usage on out of focus tabs at the cost of longer timeout. I can give it a try implementing that but i am really an angular novice. See: https://github.com/angular/angular.js/issues/6148#issuecomment-37900337

xrmx avatar Jul 08 '15 14:07 xrmx

I've given it a stab but it's not working properly, the function is called too often and hang the tab: https://github.com/xrmx/angular-poller/tree/raf

xrmx avatar Jul 09 '15 15:07 xrmx