View Full Version : Including script source as well as executing embedded script

08-27-2008, 05:30 AM
Here is a useful article by John Resig (http://ejohn.org/blog/degrading-script-tags/) about using a single script element for including a JS library as well as writing some JS code. Normally the following code will not show the alert.

<script type="text/javascript" src="mylib.js">
alert('This will not execute');