JS files are downloaded sequentially. So in your HTML, just put your .js file after jQuery and cordova, and it won’t run before both are loaded.
<script src="jQuery"></script>
<script src="cordova"></script>
<script src="yourScript"></script>
, , , :
var listener = {
jquery: false,
cordova: false,
fire: function(e) {listener[e] = true; if (listener.jquery && listener.cordova) go();
};
document.addEventListener("deviceready", function(){listener.fire('cordova'), false();
$(document).ready(function(listener.fire('jquery')){});
function go() {
}
, go() , , , , .