You seems to be attaching global event handler. Looks like we can't have multiple event handlers at this time. Is this expected or it would be handled in the future?
2. Why do we use requestAnimationFrame for rendering? Do you think its going to offer best performance all the time? Note here, I'm new to requestAnimationFrame concept, so you can answer me like I'm a noob :)
requestAnimationFrame schedules the rendering to when the
screen refreshes, which kinda makes sense in this case. (Which is a great thing when you're doing animations or games, since no frames are being dropped)
It also doesn't fire while the tab is not active, so that's a plus too.
I've nothing to do with this project though, so I might be wrong on the details.
I think it's awesome that you have a minimal piece of library, I hope does get the momentum it deserves (Shameless plug I recently did a hobby project http://invatar.ga/ and used moon.js on a second thought I might want to use this instead).
https://github.com/hyperapp/hyperapp/blob/master/src/app.js#...
You seems to be attaching global event handler. Looks like we can't have multiple event handlers at this time. Is this expected or it would be handled in the future?
2. Why do we use requestAnimationFrame for rendering? Do you think its going to offer best performance all the time? Note here, I'm new to requestAnimationFrame concept, so you can answer me like I'm a noob :)