i'm a phonegap newbie i would like to have some kind of "Header" that will load all my css and js, instead of using multiple calls in all my files.
i tried using this function
function appendScript(pathToScript) {
var head = document.getElementsByTagName("head")[0];
var js = document.createElement("script");
js.type = "text/javascript";
js.src = pathToScript;
head.appendChild(js);
}
but that don't seem to work
is there any other method to call multiple js files? please note that jQuery is not loaded