jQuery: The Write Less, Do More JavaScript Library

Google closure tools and library

View: New views
4 Messages — Rating Filter:   Alert me  

Google closure tools and library

by claka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Any thoughts on the Google closures tools release announcement.

http://googlecode.blogspot.com/2009/11/introducing-closure-tools.html

Will jQuery work with it? is it better?

Re: Google closure tools and library

by Jake B :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you look at the online version of the compiler, you'll see that
jQuery, jQuery UI, and other popular libraries are options in the "Add
a URL" dropdown menu:

http://closure-compiler.appspot.com/home

I assume that means that Google anticipates Closure being used in
conjunction with those existing libraries.

On Nov 6, 1:55 pm, claya <clakac...@...> wrote:
> Any thoughts on the Google closures tools release announcement.
>
> http://googlecode.blogspot.com/2009/11/introducing-closure-tools.html
>
> Will jQuery work with it? is it better?

Re: Google closure tools and library

by Diego Desani :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Tks! =)

On 7 nov, 16:47, Jake B <jakeboon...@...> wrote:

> If you look at the online version of the compiler, you'll see that
> jQuery, jQuery UI, and other popular libraries are options in the "Add
> a URL" dropdown menu:
>
> http://closure-compiler.appspot.com/home
>
> I assume that means that Google anticipates Closure being used in
> conjunction with those existing libraries.
>
> On Nov 6, 1:55 pm, claya <clakac...@...> wrote:> Any thoughts on the Google closures tools release announcement.
>
> >http://googlecode.blogspot.com/2009/11/introducing-closure-tools.html
>
> > Will jQuery work with it? is it better?

Re: Re: Google closure tools and library

by waseem sabjee :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

in closure I selected Jquery from the URL and tried this specific code.

$(function() { alert(true); });

they were no errors.
but 3 warnings.
I also noticed it takes considerably longer to compile JavaScript as it compiles the whole Jquery library along with your script.
Shouldn't it compile your script only since jquery.min is a compiled file ?

Number of warnings: 3

JSC_USELESS_CODE: Suspicious code. This code lacks side-effects. Is there a bug? at line 988 character 3 in jquery.js
if ( name == "selected" && elem.parentNode )
^
JSC_USELESS_CODE: Suspicious code. This code lacks side-effects. Is there a bug? at line 989 character 4 in jquery.js
elem.parentNode.selectedIndex;
^
JSC_USELESS_CODE: Suspicious code. This code lacks side-effects. Is there a bug? at line 1866 character 3 in jquery.js
elem.parentNode.selectedIndex;
^
On Mon, Nov 9, 2009 at 3:23 AM, Diego Desani <ddesani@...> wrote:
Tks! =)

On 7 nov, 16:47, Jake B <jakeboon...@...> wrote:
> If you look at the online version of the compiler, you'll see that
> jQuery, jQuery UI, and other popular libraries are options in the "Add
> a URL" dropdown menu:
>
> http://closure-compiler.appspot.com/home
>
> I assume that means that Google anticipates Closure being used in
> conjunction with those existing libraries.
>
> On Nov 6, 1:55 pm, claya <clakac...@...> wrote:> Any thoughts on the Google closures tools release announcement.
>
> >http://googlecode.blogspot.com/2009/11/introducing-closure-tools.html
>
> > Will jQuery work with it? is it better?