My Chrome seems to be doing something weird with the execution of scripts.
Code:
<!DOCTYPE html>
<html>
<head>
//Metadata
</head>
<body>
//Page Content
<script type="text/javascript" src="somescript.js"></script>
</body>
</html>
In Firefox, the script executes after the page content has loaded, as expected. However, in Chrome, the script seems to execute before the page content has loaded, freezing the loading in the meanwhile (I tested this using prompt() - page refuses to load until it is resolved).
What is the reason of this behavior and can it be fixed? I am on Chrome version 63.0.3239.132.