Closed henryruhs closed 9 years ago
Hi @redaxmedia, yes currently jbone have no any aggregation for the same event handlers and I think it's should be improved.
But please clarify, why you add so much event listeners in your application? What do you mean by "on each refresh / rendering using on()". As far as I understand you should add event listener for mousemove/touchmove events only once for parent element.
You are right, I should add the events only once to the parent container as the refresh / render process in my case only replaces the content of the pageflip container.
But that is exactly what I'm doing, the problem is that the mouse and touch events get attached again and again on refreshing / rendering the pages.
However, I hope you can find a quick win to solve this and maby extend your performance suite.
@redaxmedia performance improved, will be available in the next release.
Released in 1.0.23
Great work!
Hey,
while working on a pageflip project, I found performance issues with jBone's event handling.
I made a jsPerf to demonstrate the problem: http://jsperf.com/jquery-on-vs-native/17 What is a pageflip: http://tympanus.net/Development/FlipboardPageLayout