Preserved Topic: better to put all script in one set of (script) tags? (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 07-14-2000 17:44
If I have several different scripts being used on one page, is there a difference (performance or otherwise) if I put each in seperate script tags, or if I put them all into the same script tags? |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 07-14-2000 19:21
Not perfomance wise, I don't think. Presentation is also somewhat important, though, if people might be viewing the source. Keep it organized. |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 07-14-2000 19:47
You're saying to put it all together? Thats where I am leaning, but want to make sure there isn't any problem with that. |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 07-14-2000 19:49
You're saying to put it all together? Thats where I am leaning, but want to make sure there isn't any problem with that. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 07-14-2000 20:57
If there *is* a difference performance-wise, it will be better to have them together. If there isn't a difference, it doesn't matter. |
Neurotic (0) Inmate Newly admitted |
posted 07-14-2000 21:28
I don't belive it would effect the performence either way, to the user at least. If the scripts are all separated it normally is more work for the browser to go through all of the <SCRIPT> tags, and connect all of the functions etc. together(if that is what you are doing). Or even to search through all of the <SCRIPT> tags to find a user invoked function. I don't think that anyone will notice a difference either way. |