I have this index.html:
<!DOCTYPE html>
<html>
<head>
<script src="src/index.js"></script>
<script>
alert("2");
</script>
</head>
<body>
</body>
</html>
and this index.js:
alert("1");
How come alert('2')
is apearing before alert('1')
.
As far as I know, loading src/index.js
should be a blocking operation.
https://codesandbox.io/s/kww2o7rm0v
Thanks