Google Closure Compiler vs. YUI Compressor - Comparing the Javascript Compression Tools

Updated 8 hours, 14 minutes ago

Source: http://www.bloggingdeveloper.com/

I have written couple of articles on Google's Closure Compiler:

Closure Compiler - Javascript Compiler by Google

C# Wrapper for Google Closure Compiler

Using Google Closure Compiler with PHP 5

In terms of Javascript Compression, the most widely used tools are: JSMIN, the DOJO Compressor, Dean Edwards’ Packer and YUI Compressor. The YUI Compressor is designed to be 100% safe and yield a higher compression ratio than the other tools listed above. That’s ...

  • 501 comments on this story
PRO

50% positive

Showing 14 relevant reactions out of 501.

YUI Compressor, Closure Compiler : JSqueez de patchwork est entre les deux : 56876 (53%) au test sur jQuery de http://bit.ly/1KMKbm

2 days, 23 hours ago by tchwork on Twitter

Shared the page "Google Closure Compiler vs. YUI Compressor - Comparing the Javascript Compression Tools" In terms of Javascript Compression, the most widely used tools are: JSMIN, the DOJO Compressor, Dean Edwards’ Packer and YUI Compressor. The YUI Compressor is designed to be 100% safe and yield a higher compression ratio than the other tools... - http://www.bloggingdeveloper.com/post... See all content

2 weeks, 4 days ago by paviles on Friendfeed

Im just wondering how risky is the advanced mode and why would i ever want simple/whitespaces modes at all?

Maybe someone has some experience with large javascript codebases and closure compiler to boost the performance?

YUI compressor worked for me well so far just need to make sure its safe to use advanced mode : )

2 weeks, 4 days ago by Artur Ejsmont on Unknown

Like your writing! Still you can do some things to improve it.

2 months, 3 weeks ago by cash loans on Unknown

I'm using jQuery since 2007, this is awesome and let me write really compact JS code even for complex projects. Past July I downloaded the YUI compressor but honestly until now I didn't use it (I develop some 3 projects by month with Ajax & rich content) so it make me ask: how much useful is a compressor in our real lives?

I love Google projects but I tried Closure and I think it adds
... See all content

4 months ago by Oscar on Unknown

.@renatotarga Pelo que estou vendo, no Google Closure, só é válida a utilização do compiler http://j.mp/4bc365

4 months ago by helder on Twitter

Comparación entre compresor de YUI y el compilador de Google Closure http://bit.ly/zkwzM

4 months ago by rene_silva on Twitter

@Mattyp - Yes, I found it

The solution for my problem is:

var cookiemiss = '$cookiemiss'; // in html

function checkCookies() { // in js

alert(cookiemiss);

}

4 months, 1 week ago by DictZone on Unknown

@Dictzone: A bonus of using Google's closure over the YUI compressor is that closure actually has a firebug plugin that allows you to more easily debug the compressed code (in Firefox at least).

4 months, 1 week ago by Mattyp on Unknown

Ok. Thanks for it.

I have the problem is in the html:

<form ... onsubmit="myFunc()"...

<select onchange="myEvent()"...

You are right. If I make it from javascript, it is not problem.

E.g.:

document.forms[0].onsubmit = ...

But I have more problem :-( :

I have a template engine. In the template engine there
... See all content

4 months, 1 week ago by DictZone on Unknown

Actually, it is impossible to edit compressed Javascript. But before going to production, you can compress your code and use it only in production.

4 months, 1 week ago by blogging developer on Unknown

The closure Advanced method replace function names with shorter names. I think it is hard to use in production.

4 months, 1 week ago by DictZone on Unknown

Social comments and analytics for this post

This post was mentioned on Twitter by bloggingdev: Closure Compiler vs. YUI Compressor - Comparing the Javascript Compression Tools http://su.pr/1DqQM

4 months, 1 week ago by uberVU - social comments on Unknown

Pingback from topsy.com

Twitter Trackbacks for

Closure Compiler vs. YUI Compressor - Comparing the Javascript Compression Tools

[bloggingdeveloper.com]

on Topsy.com

4 months, 1 week ago by topsy.com on Unknown

© uberVU Ltd. 2010

Terms of use
FEEDBACK