iPad and iPhone javascript performance
I am working on an HTML5 game that will be embedded in a UIWebView and packaged as a native iPhone app, but was having some performance issues: various divs would be hidden or displayed as the user clicked on certain elements, but there was a noticeable lag with each click. It turns out that the 'click' event in Mobile Safari has quite a delay. I would guess this is to help distinguish it from other non-click gestures like dragging or double clicking. Thankfully there is another way. The "'touchstart' and 'touchend'":http://developer.apple.com/safari/library/documentation/appleapplications/reference/safariwebcontent/handlingevents/handlingevents.html events are sent to your app in a *much* more timely fashion.



