I am trying to understand some details that happen behind the scene when the web page start loading and there a point that i can not find a satisfying answer to it
- When the web page start loading the browser will then create dom tree that represent the structure of the web page he will parse the html and the css and store them inside the dom tree (Without going the details about how he store them)
- then browser will create an environment for the javascript engine to execute any javascript source code
- the dom tree and other web api (window - console - document - Location etc)are written with low-level language like c++ witch has it won object model for creating a object
- How we as a developer can access this kind of object that are written with other language than the javascript language
could you please provide me with more details on **How the javascript engine interact with web api ? **
what i found right know is that the browser create those object and then pass them the javascript engine who in the other hand will create objects written with javascript that interact with the web api objects