Hi
Dne Wed, 26 May 2010 17:03:55 +0530 Ninad Pundalik ninadsp16289@gmail.com napsal(a):
I agree with Michal. For my part, where I am planning to write jQuery functions, I'll put the common ones in either functions.js or common.js (the previous one seems to be included almost everywhere) and write page specific functions in a new file and put it in /js/. For example, all JavaScript code necessary for server_privileges.php is in server_privileges.js.
Generally the function which are used in lot of (or all) places should go to some common library, while the ones used just on few pages should be placed separately to get maximum of caching in browser but to avoid loading too much on every page.