first look at the code as follows
<script>
(function(){
var bp = document.createElement("script");
var curProtocol = window.location.protocol.split(":")[0];
if (curProtocol === "https") {
bp.src = "https://zz.bdstatic.com/linksubmit/push.js";
}
else {
bp.src = "http://push.zhanzhang.baidu.com/push.js";
}
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
does this code mean that the js file is externally referenced (2 choose 1) and placed in front of all script tags, that is, the js is required to be executed first, is that right?