If you're using jQuery, is there any reason to use one of these methods to load a JavaScript file rather than the other?
$.getScript('https://apis.google.com/js/platform.js');
vs
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/platform.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
async = trueis the default option and is redundant in the code.