How is Javascript parsed/executed in a web browser exactly?
Posted
by
ededed
on Super User
See other posts from Super User
or by ededed
Published on 2013-06-24T20:52:48Z
Indexed on
2013/06/24
22:24 UTC
Read the original article
Hit count: 114
JavaScript
For example when I access web server likely Javascript will execute.
From there on, how will the browser parse the Javascript, or "execute" the functions, the memory used, etc. How will the browser "handle" all of that?
Does it act like a compilation lexer in that it passes line by line and generates object code, or does it use the DOM, and other specifications to handle memory, etc.
Also, in terms of updating the page, and alterior concurrent executions as well, such as Flash, HTML, Java, etc.
Point be simplified, how does the browser handle the scripts, the memory, and the logic on page from a javascript file?
© Super User or respective owner