google-closure

What are the best/more stable features of the Google Closure Library

In November 2009 Google announced the release of Closure Tools which include the Closure Library. According to this post google closure library contains some battle-hardened parts and others more experimental. Could folks with experience using google closure share info on which parts are solid and which are iffy(er) or not ready for pr...

Should I use the YUI Compressor or the new Google Closure compiler to compress my JavaScript?

YUI Compressor was the consensus best tool for minimizing, but Closure seems like it could be better. ...

What does Google Closure Library offer over jQuery?

Considering business background community support available extensions default set of features simplicity of use and reliability why do you prefer one over the another? ...

jQuery compiled with Google Closure Compiler

Has anyone compiled jQuery against Google's newly-released Closure compiler? There has been reported huge savings in code size. I'm curious what the benefit is if jQuery was compiled with it. ...

How to use Google's Closure to compile JavaScript

Google just released Closure, which is a compiler to minify JavaScript. On the product site, it says "The Closure Compiler has also been integrated with Page Speed". How do I use Page Speed to compile my web pages JavaScript with Closure? (Or, is there a web site that I can simply paste in my JavaScript to have closure minify it? ...

Equivalent of "Google Closure Compiler" for HTML?

Is there an equivalent of Google's Closure Compiler for HTML minimizing? ...

Google closure compiler error "Variable COMPILED first declared in {SyntheticVarsDeclar}"

When using the Google closure compiler to try and compile a load of closure dependencies taken from their editor demo (no external code) using calcdeps.py I get the following error when then running the compiler on the produced code (which runs fine): {SyntheticVarsDeclar}: ERROR - Variable COMPILED first declared in {SyntheticVarsDecl...

Should I learn the Google Closure JavaScript framework, or is it just a passing (albeit Google branded) framework?

By now, I'm sure a lot of people will agree jQuery is pretty much the standard JavaScript framework (or as much as one can ever be). I mean, it has been adopted by Nokia and Microsoft. Now that Google has put out it's own framework, is it worth my time learning it? Do you expect good adoption of it because of the Google name? ...

Are Mootools and Google Closure Librarys Compatible?

Anyone have any experience of using Closure js lib and Mootools in the same page? Conflicts or works ok? ...

How can I load my own js module with goog.provide and goog.require?

We are trying to switch the packaging for our project from dojo to google closure, but we haven't had any luck so far. Here is a simple example that illustrates what we are trying to accomplish: <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript" src="runtime/src/core/lib/goog-rev26/base.js"></scr...

dynamic script tag loading is not working as expected

We have an application that uses both the google closure and dojo libraries. We have the following in our index page which works as expected: <script type="text/javascript" src="runtime/src/lib/google-closure-rev26/closure/goog/base.js"></script> <script type="text/javascript" src="runtime/src/lib/dojo_release_132_src/dojo/dojo.js"></s...

how to hide/show dom element in google closure

Hi, instead of domA.style.display = "none"; domA.style.display = "block; I could not find such functions in the library, but I guess they must have it somewhere. ...

Google Closure minifier online?

Has anyone setup an online copy/paste utility for Google's Closure minifier? I'm working on a project and I want to minify part of the code manually without having to setup the entire project on my own. ...

On what CDN is Google's Closure library hosted?

Google hosts a number of JavaScript libraries such as jQuery and dojo on their CDN. For some reason, their own Google Closure library does not seem to be included. Is there a hosted version of the Closure library? ...

Using Google Closure compiler

Hi, I am using jQuery and I have all of my JS code in application.js file. When I compile "application.js" with the Google Closure compiler (using the advance options) I get a js file with no errors and warning. However, I am unable to use the file in my page, I get an error on page load which says "TypeError: Result of expression '$("d...

How to make a graphics element draggable with google-closure?

How to make google closure graphics elements draggable and respond to events otherwise? Here's what I have so far. I have the circle, but can't drag it yet :). Thanks. goog.require('goog.dom'); goog.require('goog.graphics'); goog.require('goog.events'); goog.require('goog.fx.Dragger'); goog.provide('graphics_test'); graphics_test = f...

What is DomHelper in google closure?

Could somebody explain what is the meaning of DomHelper in google closure? What is it for and how it may be useful? Thanks! edit: Here is a more detailed answer ...

Creating a simple drawing area widget with google closure.

Here I've tried to create a simple drawing area widget containing a single circle, using google closure. I load it by calling sketcher.load() within html script tag and get an error: Uncaught TypeError: Cannot set property 'Widget' of undefined - what is not right here? goog.provide('sketcher'); goog.require('goog.dom'); goog.require...

How to solve "cannot call method ... to undefined" in google closure (creating simple toolbar)?

Hello, below is a complete HTML source for building a simple toolbar with google closure. Gives an error message in Chrome: Uncaught TypeError: Cannot call method 'addChild' of undefined at the spot marked with // ERROR comment. Could anyone suggest a tip fixing this? Thanks!!! edit: that's right, missed new, but another error was tha...

Any Closure Inspector success stories?

Hello, if anyone is using closure inspector and you found it provably working - could share info - which version of OS/Firefox and Firebug works for you? This question is bound to be out of date soon, but I hope someone will share some tips. Thank you! ...