Does the placement of JavaScript in HTML have any effect on operation or speed of...

Adam

New member
No matter where you put the JavaScript, it will still slow down your website but not very much at all unless you are uploading some kind of big photo rollover which takes up lots of memory. I guess you arent. :)
 
...loading? I'm looking at pre-loading images for rollover buttons. Should I put the onload code at the top so it will start executing faster, or does it matter? And if I have code for, say onclick events, should that go after all HTML? For readability I'd prefer to keep all JavaScript together at the end (if I can figure out how to write it, but that's another batch of questions) but obviously don't want to increase the time it takes for my pages to be fully functional.

Thanks,
Houyhnhnm
 
Back
Top