I\'ve tried a few different ways to remove the 300ms delay due to the webkit browsers handling of touch events. The library, FastClick.js, seems to be the preferred method,
Try with the below code.
function onBodyLoad()
{
document.addEventListener("deviceready", onDeviceReady, false);
}
function onDeviceReady()
{
alert('test');
FastClick.attach(document.body);
}
If everything is fine, you should be able to see the alert box.
Have a look on http://phonegap-tips.com/articles/fast-touch-event-handling-eliminate-click-delay.html