[Phpmyadmin-devel] Where to put new jQuery functions
Lori Lee
leelorik at gmail.com
Wed May 26 19:20:29 CEST 2010
Ok, thanks. I am going to put them in a separate file since they won't be
used anywhere else.
On Wed, May 26, 2010 at 7:41 AM, Michal Čihař <michal at cihar.com> wrote:
> 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
>
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> Phpmyadmin-devel mailing list
> Phpmyadmin-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
>
>
--
Thanks,
Lori
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20100526/af9b678f/attachment.html>
More information about the Developers
mailing list