HOT: What's Inside jQuery 1.8

Posted on

  • email
  • twitter
  • facebook
  • share this

share this


 

A new version of jQuery has been released (v1.8) - and just nine short months since jQuery 1.7 was made available. What lucky designers and developers we are! With a smaller code size (approximately 100 bytes smaller than 1.7.2) and with more than 160 bugs closed, let's take a closer look at JQuery 1.8:

- The Sizzle selector engine has been re-architected and is now faster and more efficient. Most browsers have querySelectorAll method but there have been some (serious) cross-browser implementation troubles which 1.8 solves and managed to provide coded fallbacks for IE6/7. 

- Animations have been quite cumbersome to work with through jQuery but 1.8 addresses animation performance and it has improved dramatically as a result. While CSS3 offers  better effects (and with less code), it is unlikely that jQuery and JavaScript-powered animation will dissappear (at least not in the short term). That being said, there are some new additions for animations - namely the use of progress callbacks in Primises - see the code in action here

- jQuery 1.8 now automatically adds required prefixes when a CSS property in methods such as .css() or .animate() are used. This update makes it possible to apply a single transform and -webkit-, -moz-, -ms- and -o- prefixes will be pre-pended.

- Improved modularity is also a noteworthy feature in the 1.8 build. It's not possible to reduce the already small size by using the grunt-based build systems to remove features that are not required. 

The jQuery 1.8 code is available for download here: 

http://code.jquery.com/jquery-1.8.0.min.js
(compressed and minified, for production)

http://code.jquery.com/jquery-1.8.0.js
(uncompressed, for debugging)

:: Create a local presence wherever you want to do business. Get a local phone number. ::


Login To Comment


Become a Member

Not already a part of our community? Sign up to participate in the discussion. It's free and quick.

Sign Up

Be the first to comment on this article

999 E Touhy Ave
Des Plaines, IL 60018

Toll Free: 1.800.817.1518
International: 1.773.628.2779
Fax: 1.773.272.0920
Email: info@websitemagazine.com

Facebook


Twitter