Vanilla JS Used On More Sites Than jQuery
Written by Lucy Black   
Saturday, 25 August 2012

If you are looking for a new framework to help you build a web site, then you need to know about Vanilla JS. This is the most powerful and lightweight of all the frameworks. It is already in use by a huge number of websites and autodownloaded by most browsers.

As the Vanilla JS team say:

Vanilla JS is a fast, lightweight, cross-platform framework
for building incredible, powerful JavaScript applications.

The next statement you might find difficult to believe:

In fact, Vanilla JS is already used on more websites than jQuery, Prototype JS, MooTools, YUI, and Google Web Toolkit - combined.

vanillalogo

To be more accurate Vanilla JS is used at least in part by the majority of websites including - Facebook, Google, YouTube, Yahoo and so on.

Standard features supported out of the box, not that there is a box, include closures; DOM selectors/manipulation; Ajax; a sophisticated event handling system; 2D graphics and 3D in some cases; full regular expression support; and so on. In fact, almost anything you want is included in Vanilla JS.

Not only that it is fast. The Vanilla JS main page has some speed comparisons but we can't resist quoting the benchmark for DOM object retrieval:

 

Codeops / sec
Vanilla JS document.getElementById('test-table');
12,137,211
 

Dojo

dojo.byId('test-table');
5,443,343
 
Prototype JS $('test-table')
2,940,734
 
Ext JS delete Ext.elCache['test-table']; Ext.get('test-table');
997,562
 
jQuery $jq('#test-table');
350,557
 
YUI YAHOO.util.Dom.get('test-table');
326,534
 
MooTools document.id('test-table');
78,802
 

 

Notice that the best alternative framework is less more than twice as slow and everyone's favourite jQuery is four times slower. Just think of all that speed you are giving up! Other benchmarks reveal an even bigger advantage for Vanilla JS. 

Excited?

So were we.

And amazingly we discovered that we were already downloading Vanilla JS and even using it occasionally.

If you can't wait to get started visit the Vanilla JS site for more information.

We should all be grateful to the Vanilla JS team for maintaining so many lines of code and finding a scheme that makes up-dates completely unnecessary.

vanillalogo

More Information

http://vanilla-js.com/

Related Articles

JQuery Ever More Popular

 

espbook

 

Comments




or email your comment to: comments@i-programmer.info

To be informed about new articles on I Programmer, install the I Programmer Toolbar, subscribe to the RSS feed, follow us on, Twitter, Facebook, Google+ or Linkedin,  or sign up for our weekly newsletter.

Banner


The Feds Want Us To Move On From C/C++
13/11/2024

The clamour for safe programming languages seems to be growing and becoming official. We have known for a while that C and C++ are dangerous languages so why has it become such an issue now and is it  [ ... ]



Wasmer 5 Adds iOS Support
12/11/2024

The Wasmer team has released Wasmer 5.0. The WebAssembly runtime adds experimental support for more back ends including V8, Wasmi and WAMR. It also now has iOS support, and upgraded compilers includin [ ... ]


More News

 

Last Updated ( Saturday, 25 August 2012 )