I read that you should define your JavaScript functions in the tag, but how does the location of the (whether in the
It doesn't. Most programming framework scatter scripts all throughout the page. I've only rarely seen problems because of that (and only from older browsers).