I deal with jQuery mobile and PhoneGap at the moment and have some questions about it (documentation and books did not help).
I'm using the multi-page template to develop a mobile app. Each page has some JavaScript.
- Should each JavaScript begin with
$(document).on("xxx")
? - What's the difference between
document ready
and$(document).on("xxx")
- And should I also use
function onDeviceReady()
in every JavaScript?