InfoQ

InfoQ

News

My Bookmarks

Login or Register to enable bookmarks for unlimited time.

The content has been bookmarked!

There was an error bookmarking this content! Please retry.

jQuery 1.3 Released with New High Performance CSS Selector Engine

Posted by Dionysios G. Synodinos on Jan 19, 2009

Sections
Architecture & Design,
Development,
Enterprise Architecture
Topics
Rich Internet Apps ,
Java ,
Ruby ,
Web 2.0 ,
.NET
Tags
AJAX

Version 1.3 of the JavaScript library jQuery has been released featuring Sizzle, a brand new CSS selector engine which offers significant performance gains for the most frequently used selectors. Along with the release, a new API browser was presented which is available online or as an Adobe AIR application and can accommodate live running examples with which the developers can experiment.

The most notable features of the new release are:

  • Sizzle which is a standalone, fully extensible and faster CSS selector engine.
  • A heavily refactored event’s system
  •  The addition of “Live Events” that can be bound to all current - and future - elements.
  • Lightning-fast HTML appending.
  • Rewrite of the offset method for more speed.
  • Replaced browser sniffing with feature detection, where it simulates a particular browser feature or bug to verify its existence.

The jQuery Team aims to do a follow-up jQuery 1.3.1 release soon to catch any straggling bugs that might have slipped through.

As James Hart reports there seems to be a problem regarding the use of v1.3 with Visual Studio at this time:

…reference JQuery 1.3 from a file in VS2008, and intellisense falls over in a heap. Looks like there’s something in the new Sizzle CSS selector library component of JQuery that VS just doesn’t like. That disables all JavaScript intellisense in the referencing file. It’s a real shame; MS went above and beyond releasing a pre-SP1 hotfix that enabled intellisense to be compatible with jQuery 1.2, and I know the VS guys have a completely overhauled intellisense engine coming in the next version of VS. But right now, it looks like something in Sizzle’s capability detection code throws the current VS2008SP1 code for a wobbler.

Luckily, if you’re using a -vsdoc.js file to augment jQuery, intellisense doesn’t fail because it ignores the actual jQuery source file. Unfortunately, there’s no intellisense file for JQuery 1.3.

James has developed a JQuery 1.3 intellisense header file which as he claims is a partial solution to the problem.

You can find more information on JavaScript and Rich Internet Applications right here on InfoQ.

Dionysios G. Synodinos is a Web Engineer and a freelance consultant, focusing on Web technologies

Nice library! by Zenyk Matchyshyn Posted
Re: Nice library! by jack doig Posted
JQuery 1.3 Intellisense by James Hart Posted
Re: JQuery 1.3 Intellisense by Dionysios Synodinos Posted
  1. Back to top

    Nice library!

    by Zenyk Matchyshyn

    Nice library!

    You can find review in Ukrainian of this version of jQuery here: www.rozrobka.com/2009/01/jquery-13/

  2. Back to top

    Re: Nice library!

    by jack doig

    Before upgrading to 1.3 test you application to ensure you don't bomb out Firefox. Our regression test highlighted an issue in FF2 and the same issue is visible by viewing online examples on the jQuery website.

    I believe there's a planned fix in 1.3.1

  3. Back to top

    JQuery 1.3 Intellisense

    by James Hart

    Thanks for referencing my blog post about JQuery 1.3 and Visual Studio. I'd just like to mention that the quote you've pulled above is not really quite complete, which is a little unfair. You have me saying "Unfortunately, there’s no intellisense file for JQuery 1.3.", but miss off the rather important bit: "... until now.".

    Further down the same post I go on to explain how I've produced and made available a JQuery 1.3.0 intellisense file, based on the published API documentation from the JQuery site.

  4. Back to top

    Re: JQuery 1.3 Intellisense

    by Dionysios Synodinos

    Fixed, I appreciate the feedback!

Educational Content

Jesper Boeg on Priming Kanban

In this interview, Jesper Boeg, author of the new InfoQ book – Priming Kanban, discusses the keys to using Kanban effectively, and how to get started if you are currently using other approaches.

New-age Transactional Systems - Not Your Grandpa's OLTP

John Hugg discusses high volume transaction processing applications with high and low frequency profiles, and how VoltDB can be used for that purpose.

Cool Code

Kevlin Henney examines code samples to see what can be learned from them starting from the premise that one won’t write great code unless he knows how to read it.

Collaboration: At the Extremities of Extreme

Jason Ayers share the observations he made watching a team of developers collaborating in real time on the same code base, pushing XP, pair programming and continuous integration to their extremes.

Yesod Web Framework

Michael Snoyman presents Yesod, a web framework written in Haskell and containing a web server, templating, ORM, libraries (templating, gravatar, etc.).

Transactions without Transactions

Richard Kreuter and Kyle Banker on how to avoid classical RDBMS transactional systems by using compensation mechanisms, transactional messaging or transactional procedures.

Attila Szegedi on JVM and GC Performance Tuning at Twitter

Attila Szegedi talks about performance tuning Java and Scala programs at Twitter: how to approach GC problems, the importance of asynchronous I/O, when to use MySQL/Cassandra/Redis, and much more.

10 tips on how to prevent business value risk

One category of risk that project teams need to ensure they address is business value failure – delivering a product that fails to provide value for the business investor.