is jQuery 1.4.2 compatible with Closure Compiler?

Posted by Mohammad on Stack Overflow See other posts from Stack Overflow or by Mohammad
Published on 2010-04-04T10:10:00Z Indexed on 2010/04/04 10:13 UTC
Read the original article Hit count: 290

According to the official release statement version 1.4 has been re-written to be compressed with Closure Compiler yet when I use the online version of closure compiler I get 130 warnings.

This is the code I use.

// ==ClosureCompiler==
// @compilation_level ADVANCED_OPTIMIZATIONS
// @output_file_name default.js
// @code_url http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js
// ==/ClosureCompiler==

And as far as I know you get the real benefit of Closure Compiler if you include the library with your code also, so it removes the unused functions. Yet my testing show that I can't get any further than compressing the library itself..

What am I doing wrong? Any kind of insight will be much appreciated.

© Stack Overflow or respective owner

Related posts about google-closure-compiler

Related posts about jQuery