Quote from: HTML spec -4.3 Scripting
"Otherwise:
    The user agent must immediately execute the script block, even if other
scripts are already executing."

Quote from: "JavaScript - The Definitive Guide, 5th Edition"
"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."

Q1: Can JavaScript run in parallel in HTML5 ?
Obviously, the book thinks Client-side JavaScript is (or behaves as if it
is) *single-threaded*.
However,
HTML5 spec states 'the user agent must immediately execute the script block,
even if other scripts are *already* executing.',
Does it imply that scripts can be run in parallel?

So, whether or not JavaScript can be run in parallel in HTML5?
--------------------------------------------

Q2:
Quote from: HTML spec -4.3 Scripting
"Running a script: When a script element is to be run, the user agent must
act as follows:..."
The process includes 9 steps, but I don't sure which step will take the
attribute 'async' into consideration.

Could someone give a hand? thanks

Reply via email to