+ 1
Read in description
We now in general purpose language's such as c++ the compiler started reading from main program then we follow complie depending our code addition , but the important question say : in front-end projects we have three spread files (css_html_js) .. how can i follow the path of execution?
2 ответов
+ 3
First of all, Web programming does not compile. Secondly, Html links all the other components together, so it is the first to be executed. CSS and JavaScript don’t relate to each other, so it doesn’t matter.
+ 2
As said by Ariela, "Html links all the other components together", but the "path of execution" could have some importance, and is linearly, following the order of apparition in the main html document : an html is first parsed, and when it encounters a linked or embeded JS or CSS code, main document parsing is suspended to parse and execute ( in case of JS ) the refered code. Along/during the "path", DOM (Document Object Model), CSSOM (Cascading Style Sheet Object Model) are builded and completed in memory, and so, where and when each others are parsed/executed determine how document start to be displayed and what is accessible to JS scripts execution ^^