I am not a huge JavaScript performance guru. Simply wondering, can I make the following code anymore compact? Not as in packing or compressing it, but in the way it's written.
(function() {
var jq = document.createElement('script');
var an = document.createElement('script');
var cm = document.createElement('script');
var ga = document.createElement('script');
var domain = 'http://example.com/';
jq.src = domain + 'jquery.1.3.2.js';
an.src = domain + 'jquery.alphanumeric.js';
cm.src = domain + 'common.js';
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
ga.setAttribute('async', 'true');
document.documentElement.firstChild.appendChild(jq);
document.documentElement.firstChild.appendChild(cm);
document.documentElement.firstChild.appendChild(an);
document.documentElement.firstChild.appendChild(ga);
})();
Cheers guys!