If I have an HTML page embedding several <script> tags, is there a guarantee that these script files will be executed in order they appear in the HTML file?
For example:
<script src="script1"></script>
<script src="script2"></script>
Is it guaranteed that script1 will always be executed before script2? If so, is it a cross-browser standard?
Is it guaranteed that script1 will always be executed before script2?YES, the script are loaded synchronously. That means they execute one after the other.