Too big javascript

liunx

Guest
The situation is that I have a rather big/long javascript in my html file and I would like to find a way to make it easier to Download <!--more--> my page. What would be the best thing to do? :confused: If you could give me some suggestions or an idea where I can find info on coping with this problem. I would be grateful. Thanks.<!--content-->If the script is being used in more than one HTML page, you might considder creating an external .js file. Then, just call on it from each HTML page that needs the script, just like an external .css file.<br />
<br />
<script language="JavaScript" src=http://www.webdeveloper.com/forum/archive/index.php/"yourscript.js"></script><br />
<br />
Cheers, Jochem :cool:<!--content-->I believe the "language" attribute has been deprecated (<!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-html40/interact/scripts.html#h-18.2.1">http://www.w3.org/TR/REC-html40/interac ... l#h-18.2.1</a><!-- m -->).<!--content-->
 
Back
Top