[Phpmyadmin-devel] jQuery UI components

Hi, when I selected the components I needed from jQuery UI, it produced a 14 KB file (minified) which is now in js/jquery. But as we will need more components, should we just produce one which contains all components? Its minified version is 211 KB but it would be cached by browsers. There is also the issue of localization but I had a look and only the datepicker is localized. -- Marc Delisle http://infomarc.info

2010/4/11 Marc Delisle <marc@infomarc.info>:
Hi, when I selected the components I needed from jQuery UI, it produced a 14 KB file (minified) which is now in js/jquery. But as we will need more components, should we just produce one which contains all components? Its minified version is 211 KB but it would be cached by browsers.
There is also the issue of localization but I had a look and only the datepicker is localized.
-- Marc Delisle http://infomarc.info
Please keep in mind that debugging js is alot easier if the libraries are available in uncompressed form. Philip
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel

Philip Frank a écrit :
2010/4/11 Marc Delisle <marc@infomarc.info>:
Hi, when I selected the components I needed from jQuery UI, it produced a 14 KB file (minified) which is now in js/jquery. But as we will need more components, should we just produce one which contains all components? Its minified version is 211 KB but it would be cached by browsers.
There is also the issue of localization but I had a look and only the datepicker is localized.
-- Marc Delisle http://infomarc.info
Please keep in mind that debugging js is alot easier if the libraries are available in uncompressed form.
Philip
Hi Philip, please enlighten me. Do you mean we have to debug these libraries, or that it's useful to have them in uncompressed form when calling them from our own scripts? -- Marc Delisle http://infomarc.info

2010/4/11 Marc Delisle <marc@infomarc.info>:
Philip Frank a écrit :
2010/4/11 Marc Delisle <marc@infomarc.info>:
Hi, when I selected the components I needed from jQuery UI, it produced a 14 KB file (minified) which is now in js/jquery. But as we will need more components, should we just produce one which contains all components? Its minified version is 211 KB but it would be cached by browsers.
There is also the issue of localization but I had a look and only the datepicker is localized.
-- Marc Delisle http://infomarc.info
Please keep in mind that debugging js is alot easier if the libraries are available in uncompressed form.
Philip
Hi Philip, please enlighten me. Do you mean we have to debug these libraries, or that it's useful to have them in uncompressed form when calling them from our own scripts?
Hi Marc, no, usually you don't have to debug into jQuery code, but it can be enlightening to jump into it and see what's actually going on in case something does not behave how you expect it. Also, with the event handling, you sometimes have to jump through the libraries code to see what actually triggered the event. Philip
-- Marc Delisle http://infomarc.info
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel

Philip Frank a écrit :
2010/4/11 Marc Delisle <marc@infomarc.info>:
Philip Frank a écrit :
2010/4/11 Marc Delisle <marc@infomarc.info>:
Hi, when I selected the components I needed from jQuery UI, it produced a 14 KB file (minified) which is now in js/jquery. But as we will need more components, should we just produce one which contains all components? Its minified version is 211 KB but it would be cached by browsers.
There is also the issue of localization but I had a look and only the datepicker is localized.
-- Marc Delisle http://infomarc.info Please keep in mind that debugging js is alot easier if the libraries are available in uncompressed form.
Philip Hi Philip, please enlighten me. Do you mean we have to debug these libraries, or that it's useful to have them in uncompressed form when calling them from our own scripts?
Hi Marc,
no, usually you don't have to debug into jQuery code, but it can be enlightening to jump into it and see what's actually going on in case something does not behave how you expect it. Also, with the event handling, you sometimes have to jump through the libraries code to see what actually triggered the event.
Philip
So we should put compressed and uncompressed libs in the tree, implement a mechanism in the loading process (js_include) so that the uncompressed one is loaded when a developer needs it, and tweak the release mechanism to remove the uncompressed ones in the release kit? -- Marc Delisle http://infomarc.info

Hi Dne Sun, 11 Apr 2010 10:21:57 -0400 Marc Delisle <marc@infomarc.info> napsal(a):
So we should put compressed and uncompressed libs in the tree, implement a mechanism in the loading process (js_include) so that the uncompressed one is loaded when a developer needs it, and tweak the release mechanism to remove the uncompressed ones in the release kit?
I think best approach would be to include not compressed JS in the tree and compress all of it (including our own code) when creating a release. To obey GPL, also the original form should be included in the tarball. -- Michal Čihař | http://cihar.com | http://blog.cihar.com

Hi Dne Mon, 12 Apr 2010 16:47:49 +0200 Michal Čihař <michal@cihar.com> napsal(a):
Dne Sun, 11 Apr 2010 10:21:57 -0400 Marc Delisle <marc@infomarc.info> napsal(a):
So we should put compressed and uncompressed libs in the tree, implement a mechanism in the loading process (js_include) so that the uncompressed one is loaded when a developer needs it, and tweak the release mechanism to remove the uncompressed ones in the release kit?
I think best approach would be to include not compressed JS in the tree and compress all of it (including our own code) when creating a release. To obey GPL, also the original form should be included in the tarball.
I've just pushed this approach to master. I mean compressing JS on release, not replacing jQuery with non compressed versions. To compress js just run scripts/compress-js, you need to have Java installed for that. -- Michal Čihař | http://cihar.com | http://blog.cihar.com

Hi Marc, we can use to js-min.php to compress the javascript-source files and send these to the browser. I'm doing this on my jquery-Demo Page and it works perfect. Other point is, with this technique we can send localized javascript. I will contribute a sample under http://michaelkeck.de/projects/jquery/compressor.js.zip http://michaelkeck.de/projects/jquery/compressor.css.zip It's only a sample and can be modified how you like ;) Michael Am 11.04.2010 14:28, schrieb Philip Frank:
2010/4/11 Marc Delisle <marc@infomarc.info>:
Philip Frank a écrit :
2010/4/11 Marc Delisle <marc@infomarc.info>:
Hi, when I selected the components I needed from jQuery UI, it produced a 14 KB file (minified) which is now in js/jquery. But as we will need more components, should we just produce one which contains all components? Its minified version is 211 KB but it would be cached by browsers.
There is also the issue of localization but I had a look and only the datepicker is localized.
-- Marc Delisle http://infomarc.info
Please keep in mind that debugging js is alot easier if the libraries are available in uncompressed form.
Philip
Hi Philip, please enlighten me. Do you mean we have to debug these libraries, or that it's useful to have them in uncompressed form when calling them from our own scripts?
Hi Marc,
no, usually you don't have to debug into jQuery code, but it can be enlightening to jump into it and see what's actually going on in case something does not behave how you expect it. Also, with the event handling, you sometimes have to jump through the libraries code to see what actually triggered the event.
Philip
-- Marc Delisle http://infomarc.info
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel

Michael Keck a écrit :
Hi Marc,
we can use to js-min.php to compress the javascript-source files and send these to the browser.
I'm doing this on my jquery-Demo Page and it works perfect.
Hi Michael, But no browser caching, I guess?
Other point is, with this technique we can send localized javascript.
I will contribute a sample under http://michaelkeck.de/projects/jquery/compressor.js.zip http://michaelkeck.de/projects/jquery/compressor.css.zip
It's only a sample and can be modified how you like ;)
Michael
-- Marc Delisle http://infomarc.info

Clients will also cache this if the Expires headers are sent. 2010/4/11 Marc Delisle <marc@infomarc.info>:
Michael Keck a écrit :
Hi Marc,
we can use to js-min.php to compress the javascript-source files and send these to the browser.
I'm doing this on my jquery-Demo Page and it works perfect.
Hi Michael, But no browser caching, I guess?
Other point is, with this technique we can send localized javascript.
I will contribute a sample under http://michaelkeck.de/projects/jquery/compressor.js.zip http://michaelkeck.de/projects/jquery/compressor.css.zip
It's only a sample and can be modified how you like ;)
Michael
-- Marc Delisle http://infomarc.info
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel

Hi Marc, by default my libraries uses browser cache. The server cache for the gzipped files is optional. Michael Am 11.04.2010 16:38, schrieb Marc Delisle:
Michael Keck a écrit :
Hi Marc,
we can use to js-min.php to compress the javascript-source files and send these to the browser.
I'm doing this on my jquery-Demo Page and it works perfect.
Hi Michael, But no browser caching, I guess?
Other point is, with this technique we can send localized javascript.
I will contribute a sample under http://michaelkeck.de/projects/jquery/compressor.js.zip http://michaelkeck.de/projects/jquery/compressor.css.zip
It's only a sample and can be modified how you like ;)
Michael
participants (4)
-
Marc Delisle
-
Michael Keck
-
Michal Čihař
-
Philip Frank