jQuery 1.1.3: 800%+ Faster, still 20KB
I’m pleased to announce the release of jQuery 1.1.3. After many months of testing, developing, and more testing, we have a very solid release available for download. It comes with roughly 80+ fixed bugs and a handful of enhancements for good measure. Highlights include:
- Improved speeds, with DOM traversal over 800% faster than in 1.1.2.
- A re-written event system, with more graceful handling of keyboard events.
- A re-written effects system (with an accompanying fx test suite), featuring faster execution and better cross-platform support.
Update – July 4th: We just finished a quick bug fix release, versioned 1.1.3.1, which fixes a couple of outstanding issues.
Download:
As always, if you find any bugs with this release, please post them to the jQuery Bug Tracker.
1.1.3 Features
Massive Selector Speed Improvements
Due to popular demand, we dug deep and made some major changes to jQuery’s selector engine. Here’s a breakdown of the speed improvements that were made to jQuery itself. All numbers are based on the SlickSpeed test suite.
Browser | jQuery 1.1.2 | jQuery 1.1.3 | % Improvement |
---|---|---|---|
IE 6 | 4890ms | 661ms | 740% |
Firefox 2 | 5629ms | 567ms | 993% |
Safari 2 | 3575ms | 475ms | 753% |
Opera 9.1 | 3196ms | 326ms | 980% |
Average improvement: | 867% |
Additionally, we tested the improved code base against some of the other popular selector libraries, again with the SlickSpeed test suite.
Browser | Prototype | jQuery | Mootools | Ext | Dojo |
---|---|---|---|---|---|
IE 6 | 1476ms | 661ms | 1238ms | 672ms | 738ms |
Firefox 2 | 219ms | 567ms | 220ms | 951ms | 440ms |
Safari 2 | 1568ms | 475ms | 909ms | 417ms | 527ms |
Opera 9.1 | 220ms | 326ms | 217ms | 296ms | 220ms |
A couple things to notice when looking at the speed suite results are that:
- We’re over 800% faster than we were in jQuery 1.1.2.
- We’re the fastest framework in the most popular browser, Internet Explorer 6.
- We’re the only framework that doesn’t give incorrect results.
- And all of this comes at no expense to you — jQuery is still the same 20KB that you’ve come to expect and enjoy.
New Selectors
Unicode Selectors: This is a huge addition for those of you who want to use Unicode attribute values, IDs, class names, or tag names. You can now use them directly in jQuery selectors:
$("div.å°åŒ—") $("div#å°åŒ—") $("foo_barå°åŒ—") $("div[@id=å°åŒ—]")
Escape Selectors: A frequently requested feature you can now select elements by ID (or other selector) that uses a special character, for example this will find the div that has the ID of “foo.bar”:
$("div#foo\\\\.bar")
Inequality Selector: While this selector isn’t part of the CSS specification, it’s frequently used and included in other selector libraries, so we decided to add it in:
$("div[@id!=test]")
:nth-child() improvements: This selector allows you to locate specific child elements. We’ve supported selectors like :nth-child(1) and :nth-child(odd) since the beginning of jQuery, now we’ve added advanced :nth-child selectors, such as:
$("div:nth-child(2n)") $("div:nth-child(2n+1)") $("div:nth-child(n)")
Space-separated attributes: After being removed in jQuery 1.0, this selector has now been brought back by popular demand. It allows you to locate individual items in a space-separated attribute (such as a class or rel attribute).
$("a[@rel~=test]")
Animation Improvements
Speed: Animations are now significantly faster and smoother. Additionally, you can run more simultaneous animations without incurring any speed hits.
Testing: We now have a dedicated test suite for animations — which has allowed us to fix a number of pressing animation bugs that weren’t previously locatable.
DOM Event Listeners
Internally, the jQuery Event system has been overhauled to use the DOM Event system, rather than the classical “onclick” style of binding event handlers. This improvement allows you to be more unobtrusive in your use of the library (not affecting the flow of other libraries around it). Additionally, it helped to resolve some of the outstanding issues that existed with binding event listeners to IFrames.
Event Normalization
Some great steps have been taken to normalize keyboard and mouse events. You can now access the event.which
property to get most details about the specific key or button that was pressed.
Multiple .is()
The .is()
method can now take multiple selectors, separated by a comma. This allows you to test your jQuery set against multiple selectors.
$("div").is(":visible, :first")
Browser Version
A commonly requested feature, by plugin authors, was a way to determine what browser version their users were using. We now expose an extra property through which this information can be accessed.
jQuery.browser.version
More Bug Fixes
Please see the ticket listing for the full list of all issues resolved in this release.
The Future of jQuery
We’ve been very concerned with the direction and progress being made towards furthering the jQuery project. We’re focusing on a number of different aspects now, but the primary concern is still the advancement of the core jQuery library. We’ve spec’d out the next two releases, which you can read more about below:
jQuery 1.1.4
This will be the last release of the jQuery 1.1 branch – another bug fix release with some minor improvements. This release will also mark a number of methods as deprecated, in accordance with the upcoming jQuery 1.2 release.
We’re currently planning on having this release take place at the end of July.
jQuery 1.2
This will be the next major release of jQuery, containing a significant number of new features. The full details of this release can be found in the jQuery 1.2 Roadmap.
Your comments and feedback on this release are greatly appreciated. It’s still in planning, so nothing is completely final. We’re currently planning on releasing jQuery 1.2 by the end of August.
jQuery Books
We’re now up to 4 jQuery books being written and, just as importantly, they’re all being written by members of the jQuery team (so you’ll know that you’re getting good information).
The books and their authors are as follows:
- Learning jQuery by Karl Swedberg and Jonathan Chaffer – due out early July 2007 (Packt Publishing).
- jQuery Reference Guide by Karl Swedberg and Jonathan Chaffer – due out Summer 2007 (Packt Publishing).
- jQuery Quickly by Yehuda Katz and Bear Bibeault (Manning Publishing).
- Designing with jQuery by Glen Lipka (Manning Publishing).
This is really fantastic news. I’ve been able to read some of the pre-release chapters and I think you’re going to be in for a real treat with these books.
jQuery Talks and Conference
I’d like to announce some talks being given about jQuery in the upcoming months. Specifically, there will be a number of talks given about jQuery at both of the Ajax Experience conferences.
At the San Francisco Ajax Experience, John Resig will be giving an introductory overview to jQuery followed by an advanced jQuery talk. Glen Lipka will be giving a talk on designing with jQuery.
At the Boston Ajax Experience, John and Glen will be presenting again, and will be joined by Paul Bakaus to give a talk on developing intense applications and games with jQuery.
Since there’s going to be quite a few members of the jQuery team at the Boston Ajax Experience, we’d like to announce that we’re planning on doing a small, one day, jQuery Conference the next day after the Ajax Experience. This will be the perfect opportunity for you to meet the jQuery team and ask any nagging questions that you have. We’ll also be giving a number of talks about specific aspects of jQuery. We’ll have more details about this soon.
jQuery UI
Today, we’re also pleased to announce a secret project that we’ve been working on: jQuery UI. This project, being written by Paul Bakaus, is a whole new Drag & Drop library being developed from the ground up with speed and extensibility taken into consideration. Additionally, great care is being taken to have the code be fully documented and tested — allowing many other developers to use and help extend it.
This library will contain full code for Draggables, Droppables, Sortables, Resizables, and a Slider.
You can take a look at some of Paul’s early work in the SVN repository.
Funding and Thank You
The new jQuery UI library marks a new step for the jQuery project: This is a piece of code whose development we’re sponsoring using money donated by you, the jQuery users!
This is being made possible in two ways: first by your continued support and donations to the jQuery project, and second by a generous server donation by Media Temple. This is allowing us to focus our financial resources on other projects that’ll benefit everyone the most.
So I’d like to take this opportunity to request additional donations to help us continue funding exciting new work that you’ll be able to use in your web sites. Any help will be greatly appreciated.
Once again, I’d like to thank the jQuery team and everyone who has helped to make this release possible. It’s been a lot of work, but I hope you’ll be as pleased with this release as we are. Thank you — and thanks for using jQuery!
The .is() method can now take multiple selectors, separated by a comma. This allows you to test your jQuery set against multiple selectors.
You guys rock! I just made another donation, and I fully encourage everyone else to do the same if they’re financially able.thanks
Just made one donation here for the great work :)
Good comment, the one about the selectors, can you explain a bit more please?
Gerry: We compared the results using the most pervasive browser versions at the moment as defined by w3schools (http://www.w3schools.com/browsers/browsers_stats.asp). Currently, IE6 (38.1%) is till the most popular browser according to them with FF2 (33.7%) following closely behind.
ne diyisun
Ucuzu varken..
fhjgjtjOFIwjıahfajasıfjeıowOEWIjorıojrıjıojoıewjıo
Helal olsun beyler..
The best is becoming better
Thats awesome :D.Thanks.
I believe the main reason why apple is locking its systems (both macosx and iphone) is software consistency and side effects.
The basic idea is that if you give away too much control over the core of your system, then you end-up with myriads of unsecure applications. If you need examples – see how windows looks like these days.
Instead, apple was always allowing only limited integration with its systems. Of course – you can still write some applications for mac, and communicate with the system core through provided API, but you don’t have possibility to really change the core itself. Thats why Apple used to be so much more stable than windows.
In case of iphone its the same case – they just don’t want every kid on the block to write sh*#ty apps, they want to have control over what people are writing and how secure it is – in order to be able to say: yes, its stable, we guarantee that.
There’s no evil in this, its just customer service. Just like when you go to the restaurant you want someone (chef) to have control over what all the cooks are cooking.
What is the upgradability for already built sites running multiple plugins?
Cam the new version be simply put in place…
Ie. “Drop it, and lock it, and rock and roll…�
OR should the plugins be taken on a case by case basis, that there could be problems or upgrades required with those as well.
Is the architecture backwards compatible, just like Nintendo, lol.?
Los ordenadores mas baratos y potentes en venta, al alcance de tu mano!
Los ordenadores mas baratos y potentes en venta, al alcance de tu mano! 800% de so fast and you really useful. Ideal for high traffic web sites so as to optimize server performance is an event. I recommend to everyone. Thank you.
800% de so fast and you really useful. Ideal for high traffic web sites so as to optimize server performance is an event. I recommend to everyone. ThankS you.
upgrades required with those as well.
Is the architecture backwards compatible, just like Nintendo, lol.?
What is the upgradability for already built sites running multiple plugins?
Cam the new version be simply put in place…
Ie. “Drop it, and lock it, and rock and roll…�
800% de so fast and you really useful. Ideal for high traffic web sites so as to optimize server performance is an event.
I recommend to everyone. Thank you.
What is the upgradability for already built sites running multiple plugins? tHANKS yoUU
lol, ok 800% faster^^
Works ok! Thanks for this, i write less sure.
Brilliant work, guys. Some brilliant optimisation
What is the upgradability for already built sites running multiple plugins?
Cam the new version be simply put in place…
Great to combine with frameworks such as Code Igniter!
i think it is ture what you said.This allows you to test your jQuery set against multiple selectors.
I m agree While I haven’t confirmed that, and really don’t intend to, I have downloaded it, and am in the process of testing it, to make sure that all of the plugins we’re using will still work with it. So far so good
Yes you are right this allows you to test your jQuery set against multiple selectors.
Do you do that same way OR should the plugins be taken on a case by case basis, that there could be problems or upgrades required with those as well.
Is the architecture backwards compatible, just like Nintendo, lol.?
In my opinion changes will be great and I believe jQuery has become more faster every update.
Thank you
Great post, the one about the selectors, can you explain a bit more please?
Alguien puede comentar la diferencia entre esta versión y la 1.3.2 ? En castellano plis.
JQuery will fuel the programming OS industry for some years…
What you think about our website ?
kadirli çiçek siparişi
çiçek
What it is your new version jquery like? what the main futures are like?
thanks for all it is very nice blog
The jQuery anti-patterns slides are great. Great to have all those things in once place.
thhnkssss
tsklerrr
adsfdsgsd
Thank You.. Sesli chat
Thank You Blog. Sesli Sohbet
Nice..Kamerali Chat
Görüntülü Chat
ridoss
ridosssssss
ridos