[Phpmyadmin-devel] Where to put new jQuery functions
Michal Čihař
michal at cihar.com
Wed May 26 13:41:59 CEST 2010
Hi
Dne Wed, 26 May 2010 17:03:55 +0530
Ninad Pundalik <ninadsp16289 at 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.
--
Michal Čihař | http://cihar.com | http://blog.cihar.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20100526/c69156ce/attachment.sig>
More information about the Developers
mailing list