Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The Sencha touch guys passed everything, event events, through a requestAnimationFrame call as an object pool for their Facebook demo and it seemed to scale well. I wonder why more people do not explore that approach


Can you describe this in more detail? We use a custom event loop to get concurrency in our web app. I'm thinking of adapting it to requestAnimationFrame and am curious to hear what tricks are out there.


I could never find more details on the actual implementation, they gave a presentation at a meetup in Feb that I attended and I was amazed. I know that the main controller had ways to prioritize/manage the stack that requestAnimationFrame looped through and they would do things like push UI events to the top of the stack and Ajax requests later, etc. It was really cool stuff from a programming perspective




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: