December 2013
Intermediate to advanced
384 pages
9h 54m
English
<head> <script type="text/javascript" src="scripts/scriptA.js"></script> <script type="text/javascript" src="scripts/scriptB.js"></script> </head>
As you create more and more complex JavaScript web applications, you will find that adding the JavaScript to your HTML files doesn’t make much sense. The files become too big, and you will often want to reuse the scripts in other web pages.
Instead of including the JavaScript inside the <script> tag, you can specify a src location for the script to be loaded from. When the browser encounters a src attribute in the <script> tag, it downloads the script from the server and loads it into memory.
Read now
Unlock full access