через ajax...
а чем такой метод плох?
function include(filename) {
var js = document.createElement('script');
js.setAttribute('src', filename);
document.getElementsByTagName('HEAD')[0].appendChild(js);
var cur_file = {};
cur_file[window.location.href] = 1;
if (!window.js_file)
window.js_file = {};
if (!window.js_file.includes)
window.js_file.includes = cur_file;
if (!window.js_file.includes[filename]) {
window.js_file.includes[filename] = 1;
} else {
window.js_file.includes[filename]++;
}
return window.js_file.includes[filename];
}
(function () {
var JSlist = [];
JSlist.push('/js/jquery-easing.js');
JSlist.push('/js/jquery.maskedinput.js');
...
JSlist.forEach(function (URL) {
include(URL);
});
}());