javascriptserial-processing

Does javascript load serially on every browser?


if i have multiple javascript file on a page, will it always load serially across browser?

<script src='test1.js'></script>
<script src='test2.js'></script>
<script src='test3.js'></script>

for example, if the test*.js would write 1,2 and 3 using console.log, would it always write 1,2,3 on every browser?

if it isn't, is there a way to make it synchronous/serially?


Solution

  • I actually tested your example in the following browsers, each loaded serially:

    Please read this exhaustive answer for more information on why.