Page 1 of 1

css & js compressor (minify vs yui)

Posted: Sun Sep 16, 2012 12:03 pm
by srini
Hi,

I see minify & yui compressor maven plugins floating around in my google search. I want to check pros/cons of one over another. I also see another php based on fly compressor(http://code.google.com/p/minify/) running from web server. Would that be a good choice!

Thanks,
Srini.

Re: css & js compressor (minify vs yui)

Posted: Sun Sep 16, 2012 5:30 pm
by jfridye
srini wrote:Hi,

I see minify & yui compressor maven plugins floating around in my google search. I want to check pros/cons of one over another. I also see another php based on fly compressor(http://code.google.com/p/minify/) running from web server. Would that be a good choice!

Thanks,
Srini.


In full disclosure, I have not used either tool to compress my source JavaScript/CSS files. However, I see a couple of advantages with using the YUI Compressor Maven plugin:
- the compression of the JavaScript/CSS is done during the maven build, and there will be no overhead processing each request, resulting in lower page load times for the end user
- the Broadleaf dependency management and build process already leverages Maven, and I expect little configuration will be needed to add the YUI Compressor as a part of your build/deployment process

Re: css & js compressor (minify vs yui)

Posted: Sun Sep 16, 2012 9:28 pm
by srini
Thanks Joseph. That is what I thought too. I wanted to double check and get insights from the experiences in your client implementations.