Hi All,
I had a question regarding the working of an external javascript file
Suppose I have an external javascript file and it has a set of functions written in it. I reference this JS file in my HTML page. Now, when a user requests for this HTML page, what happens with the JS file. Is the function body that is called from the HTML sent with the page markup ? or is the JS file downloaded to the users machine/ loaded in the memory ??
Regards,
Vipul
Loading

Chintan RathodPosted Dec 24, 2011, 7:50 AM
Now, whenever the page is loaded, the browser also puts the script
"helloworld.js" in the page. Note that you do not see the script in
your source code, you just see the include tag.
By including the above reference, your browser will now download
the code stored inside "helloworld.js" and run it as if it was physically
typed onto the page.