Quote from: HTML spec -4.3 Scripting<br>"Otherwise:<br> The user agent must immediately execute the script block, even if other scripts are already executing."<br><br>Quote from: "JavaScript - The Definitive Guide, 5th Edition"<br>
"The core JavaScript language does not contain any threading mechanism, and client-side JavaScript does not add any. Client-side JavaScript is (or behaves as if it is) single-threaded."<br><br>Q1: Can JavaScript run in parallel in HTML5 ?<br>
Obviously, the book thinks Client-side JavaScript is (or behaves as if it is) <b>single-threaded</b>.<br>However,<br>HTML5 spec states 'the user agent must immediately execute the script block, even if other scripts are <b>already</b> executing.',<br>
Does it imply that scripts can be run in parallel?<br><br>So, whether or not JavaScript can be run in parallel in HTML5?<br>--------------------------------------------<br><br>Q2:<br>Quote from: HTML spec -4.3 Scripting<br>
"Running a script: When a script element is to be run, the user agent must act as follows:..."<br>The process includes 9 steps, but I don't sure which step will take the attribute 'async' into consideration.<br>
<br>Could someone give a hand? thanks<br><br>