[thelist] Loading JavsScript file (*.js)

Hassan Schroeder hassan at webtuitive.com
Thu Sep 19 16:44:02 CDT 2002


Syed Zeeshan Haider wrote:

> I have a very large JavaScript file (size is about 40 KB). I have inserted it in
> HTML document with following line:
> <script language="JavaScript" src="myscript.js"></script>
> This file definitely increases the loading time of the HTML document as it loads
> along with HTML.

I haven't tested browser support for this, but see the "defer"
attribute of the SCRIPT tag --

<http://www.w3.org/TR/html401/interact/scripts.html#edef-SCRIPT>

- which sounds like just what you need :-)

FWIW!
--
H*
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

     -- creating dynamic Web sites and applications since 1994 --





More information about the thelist mailing list