View Full Version : Resolved Load External JavaScript

05-10-2009, 05:02 PM
If I am making a site using various scripts etc.

(such as many that you find on dynamic drive) that ALL requires various javascript in the header section and all work fine in conjunction with each other.

Would it work jsut as well to bung all the codes into a file like "filename.js"

Then just stick:

<script type="text/javascript" src="filename.js">


into the page headers.

Would the scripts still run this way?

05-10-2009, 06:22 PM
Not only should they run, it's also recommended to combine all external JavaScript files into one, in order to reduce the number of http requests. Just remember that you must follow the DD usage terms (http://www.dynamicdrive.com/notice.htm) which among others say that the credit notice must still be retained within the <script> tags, in the page's visible source.

Happy coding!

05-10-2009, 06:30 PM
Thanks =] I am a total java dunce and I had already considered that as I gotta loop my own "credit" in anyway so the work can be traced bk to me if I move on