New jQuery release - 1.1.4: fantastic acceleration!
On August 24, a new release of the popular jQuery JavaScript library was released: jQuery-1.1.4 . This is probably the last release from the 1.1.x branch and release 1.2 will be released in September.
- significant (several times) increase in speed compared to the previous release
- instead of the operators '$' and 'jQuery', you can use any name to refer to JQ functions.
- the ability to use multiple versions of JQ on one page, calling them differently
- ability to embed jq in other js libraries
Performance Comparison:
$ ("# Id") Improvements
IE 6 | 651ms | 70ms | 830% |
---|
Firefox 2 | 1355ms | 27ms | 4919% |
---|
Safari 3 | 101ms | 14ms | 620% |
---|
Opera 9 | 270ms | 62ms | 335% |
---|
Average improvement: | 1676% |
---|
$ ("Elem") Improvements
IE 6 | 661ms | 451ms | 47% |
---|
Firefox 2 | 1717ms | 143ms | 1100% |
---|
Safari 3 | 99ms | 83ms | nineteen% |
---|
Opera 9 | 226ms | 198ms | 14% |
---|
Average improvement: | 295% |
---|
.each () Improvements
IE 6 | 200ms | 30ms | 567% |
---|
Firefox 2 | 468ms | 29ms | 1514% |
---|
Safari 3 | 17ms | 11ms | 54% |
---|
Opera 9 | 45ms | 25ms | 80% |
---|
Average improvement: | 554% |
---|
DoJo and YUI implementation example:
// With the Dojo Toolkit
dojo.jquery = jQuery.noConflict (true);
dojo.jquery ("# elem div"). slideDown ("slow");
// or with Yahoo UI
YAHOO.query = jQuery.noConflict (true);
YAHOO.query ("span.hidden"). RemoveClass ("hidden");
Details, downloads, a list of closed bugs and a description of the test - click the link at the beginning of the topic.
')
Source: https://habr.com/ru/post/13519/
All Articles