|
|
|
|
|
by antoaravinth
3172 days ago
|
|
Thanks for the great library. I was trying to go-through the source and I have couple of questions.One, on line 135: 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 :) |
|
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.