
By Jayaram Krishnaswamy | Article Rating: |
|
November 8, 2009 06:17 PM EST | Reads: |
5,929 |

JavaScript has suddenly matured and perhaps these are its best of times. There is a large number of JavaScript libraries vying for your attention and capture your heart. Review the article describing the various libraries on Wikipedia.
It all really started with the introduction of Dynamic HTML[DHTML] when Javascript provided the scripting ability to interact with the web page which had remained mostly static till that time. With the support of CSS and Javascript the stage was set for the web pages to take the users to the next level. The next big push came in with the introduction of AJAX. The concurrent effort by developers to somehow address the display disparity with the existing browsers and make the user experience uniform across different existing browsers and versions resulted in packaging the various libraries. Of course Microsoft Visual Studio also worked hard on making this uniform user experience across browsers a priority and the applications developed using this IDE fulfilled this wish mostly.
Most recently Google made available its toolset, the Closure Compiler. It is supposed to make Javascript to download and run faster according to Google. It is more like a refactoring tool for Javascript. It also checks for script coding errors etc. Moreover it is integrated with Firefox's PageSpeed and you can see for yourselves the gain in performance using the Google Tool. The tool can be used from command line as well as a simple web application.
The above Google URL also has links to examples of the tool's usage. One such example shows optimizing code by removing white spaces. Review this example here.
In the above example, it took in the script shown here:
---------
function hello(name){
//Greets the user
alert('Hello, ' + name);
}
hello('New User');
------------------------
and the Closure Tool optimized it to the following after removing white spaces (as well as the comments) :
-----------
function hello(name){alert"Hello, "+name)}hello("New User");
------------------------------------------------
Parse errors with line number and character position are provided by the tool but you will have to go and count those on your input code. Also there is no color coding or error position highlighting.
How to access the Closure compiler?
Click on this URL and you are ready, set and go.
.
Read the original blog entry...
Published November 8, 2009 Reads 5,929
Copyright © 2009 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Jayaram Krishnaswamy
Jayaram Krishnaswamy is a technical writer, mostly writing articles that are related to the web and databases. He is the author of SQL Server Integration Services published by Packt Publishers in the UK. His book, 'Learn SQL Server Reporting Services 2008' was also published by Packt Publishers Inc, Birmingham. 3. "Microsoft SQL Azure Enterprise Application Development" (Dec 2010) was published by Packt Publishing Inc. 4. "Microsoft Visual Studio LightSwitch Business Application Development [Paperback] "(2011) was published by Packt Publishing Inc. 5. "Learning SQL Server Reporting Services 2012 [Paperback]" (June 2013) was Published by Packt Publishing Inc. Visit his blogs at: http://hodentek.blogspot.com http://hodentekHelp.blogspot.com http://hodnetekMSSS.blogspot.com http://hodnetekMobile.blogspot.com He writes articles on several topics to many sites.
![]() Dec. 5, 2017 02:30 AM EST Reads: 995 |
By Pat Romanski ![]() Dec. 4, 2017 08:45 PM EST Reads: 2,034 |
By Elizabeth White ![]() Dec. 4, 2017 07:30 PM EST Reads: 978 |
By Pat Romanski ![]() Dec. 4, 2017 06:15 PM EST Reads: 312 |
By Liz McMillan ![]() Dec. 4, 2017 05:45 PM EST Reads: 1,307 |
By Liz McMillan ![]() Dec. 4, 2017 04:45 PM EST Reads: 1,037 |
By Elizabeth White ![]() Dec. 4, 2017 04:45 PM EST Reads: 2,579 |
By Elizabeth White ![]() Dec. 4, 2017 03:34 PM EST Reads: 361 |
By Elizabeth White ![]() Dec. 4, 2017 03:15 PM EST Reads: 344 |
By Liz McMillan ![]() Dec. 4, 2017 01:45 PM EST Reads: 1,099 |
By Pat Romanski ![]() Dec. 4, 2017 11:15 AM EST Reads: 2,166 |
By Pat Romanski ![]() Dec. 4, 2017 07:45 AM EST Reads: 929 |
By Elizabeth White ![]() Dec. 4, 2017 06:30 AM EST Reads: 729 |
By Liz McMillan ![]() Dec. 4, 2017 06:15 AM EST Reads: 3,272 |
By Liz McMillan ![]() Dec. 3, 2017 08:15 PM EST Reads: 9,331 |
By Liz McMillan ![]() Dec. 1, 2017 02:00 PM EST Reads: 1,320 |
By Liz McMillan ![]() Dec. 1, 2017 12:00 PM EST Reads: 1,154 |
By Elizabeth White ![]() Dec. 1, 2017 10:00 AM EST Reads: 1,056 |
By Roger Strukhoff ![]() Nov. 30, 2017 06:00 PM EST Reads: 3,740 |
By Liz McMillan ![]() Nov. 30, 2017 10:45 AM EST Reads: 1,204 |