Google Open Sources its JavaScript Tools
Google says the Closure widgetry is a key part of the JavaScript infrastructure behind its web apps

Cloud Computing Journal

Google Thursday open sourced its Closure JavaScript tools – a compiler, a cross-browser, server-agnostic library and a bunch of precompiled templates – in the name of making web apps easier to build.

Recall that Gmail, Google Docs and Google Maps are JavaScript-intensive applications. Well, Google says the Closure widgetry is a key part of the JavaScript infrastructure behind its web apps. And the more web apps, the more of a headache for Microsoft and its ilk.


Over 2,200 Delegates at the 4th International Cloud Computing Expo in Sta.Clara CA

Developers can take a command-line approach to the compiler, or go through a web application that Google’s provided that accepts code to be compiled through a text box or a RESTful API. It’s also offering a Firefox extension that shows off the performance enhancements.

Google said to think of the Closure Templates as small components used to form a user interface, instead of having to create one big template per page. They’re implemented for both JavaScript and Java, so the same templates can be used on both on the server and client side.

The Closure Compiler is described as a JavaScript optimizer that compiles web apps down into compact, high-performance JavaScript code. It removes dead code, then rewrites and minimizes what’s left so it will run fast on browser JavaScript engines.


More than 50 Sponsors and Exhibitors at the 4th International Cloud Computing Expo in Sta.Clara, CA

It also checks syntax, variable references and types, and warns about common JavaScript pitfalls. Using it should mean apps that are less buggy and easier to maintain. It can be used with Closure Inspector, a Firebug extension that Google says “makes debugging the obfuscated code almost as easy as debugging the human-readable source.”

About Maureen O'Gara
Maureen O'Gara the most read technology reporter for the past 20 years, is the Cloud Computing and Virtualization News Desk editor of SYS-CON Media. She is the publisher of famous "Billygrams" and the editor-in-chief of "Client/Server News" for more than a decade. One of the most respected technology reporters in the business, Maureen can be reached by email at maureen(at)sys-con.com or paperboy(at)g2news.com, and by phone at 516 759-7025.

In order to post a comment you need to be registered and logged in.

Register | Sign-in

Reader Feedback: Page 1 of 1

ADS BY GOOGLE