PDA

View Full Version : Java script question


Avatar
07-04-2001, 05:38 AM
ok, here is my question.
Let's say I set up the path to a javafunction this way:

<script language=javascript src="function.js"></script>

and lets say the file is rather large 50kb+ and that I call a small function in end of the file this way:

<script language=JavaScript>function()</script>

So the question is: Does the surfer download the whole function.js ( 50 kb ) which will increase loading time and bw?? or just the small function?

Probaly a stupid question but I will be waiting for your answers http://bbs.adultwebmasterinfo.com/ubb/smile.gif

flick69
07-04-2001, 05:42 AM
They'll download the whole thing.

You're prolly better off pasting the function in the <head< of the page

l8r
flick