[Phpmyadmin-devel] not uglifying js for production

Michal Čihař michal at cihar.com
Tue Jun 18 15:44:01 CEST 2013


Hi

Dne Tue, 18 Jun 2013 12:01:22 +0200
Mohamed Ashraf <mohamed.ashraf.213 at gmail.com> napsal(a):

> A web server that is configured to support gzip would help alot more
> than minification anyway and provides a much smaller size whether the
> files are minified or not. Most web servers and web browsers already
> support gzip compression so it is not a problem. also the javascript
> files are already aggressively cached so it is not a big problem.

Indeed gzip can save transfer size, minified code has also benefits for
parsing and execution time due to shorter identifiers. Or at least
Google claims so:

https://developers.google.com/speed/docs/best-practices/payload#MinifyJS

> considering that with minified files you would get zero to no
> information on the source of a javascript error. I think it is a small
> price to pay for error reports; otherwise most error reports would be
> "ReferenceError: a is not defined in line 7" where line 7 is the
> entire jquery source minified. Having understandable error reports is
> worth paying a few extra KB. notice that not all scripts are fetched
> at once every page load thus it is at most a few KBs more per request
> is not much
> 
> I think this is the best course of action for proceeding with the
> collection of error reports since we are giving deployers the option
> of turning this feature off altogether and provide minified files to
> their users if it really came to that.

That's option as well, though it increases size of our package...

-- 
	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: 836 bytes
Desc: not available
URL: <http://lists.phpmyadmin.net/pipermail/developers/attachments/20130618/5ea3f9a5/attachment.sig>


More information about the Developers mailing list