When to use device ready vs onload?
I've done most of my core infrastructure/development on a project and I'm trying to make sure now it's stable and there are no issues/errors. Most of the time I have been using the onload event to do things like read from the database, read from files on the device, and other things which require cordova, but the cordova stuff is primarily invoked after the page loads and a user clicks a button. Should I go through my entire app and switch everything to the on device ready event if cordova is called? Are services defined within appery already on device ready safe? I haven't noticed any real issues because I never get errors that the cordova functionality is not available.