The on-page script here is trivial and uses a built-in method, but the external script in this page is nontrivial (defines a function)
The external script is blocked, the inline script is executed.
<script src="external.js"></script>
<script>
alert('internal script');
</script>
var myAlert = function () {
alert("external script");
}
myAlert();