Drupal 6.0 will include jQuery 1.2

jQuery 1.2 was released 3 days ago (September 10th), and in just 2 days later a patch was committed to Drupal 6.0, just in time before the first beta (which was due many days ago;).

Why is this important?
Because jQuery 1.2 has several API changes, and if the first Drupal 6.0 beta was with jQuery 1.1.x there would be no chance that the Drupal 6.0 release would ship with jQuery 1.2.

Whats up with jQuery 1.2 anyway?
Well, not very much since jQuery 1.1.4 already was included in the upcoming Drupal 6.0 beta. jQuery 1.1.4 introduced some amazing speed improvements.
However it was strongly recommended by digitalspaghetti, one of the jQuery core team members to upgrade to jQuery 1.2, because of the lack of maintained jQuery 1.1.x compatible plug ins. Remember that Drupal 6 will be "in the wild" for some years, so an up-to-date JavaScript library with up-to-date plug ins is extremely important.

So, way to go all of you that made jQuery 1.2 go into Drupal 6.

I need someone more familiar

I need someone more familiar with jQuery to look into this. With some brief testing, it looks like most things work with the context object removed from the selection but I'm not sure why it was set-up like that to begin with.

Is it to narrow the selected scope for performance reasons?

Submitted by dvessel (not verified) on Thu, 06/19/2008 - 07:46.
As of drupal 6, if you put a

As of drupal 6, if you put a script.js file in the base directory of your theme it will automatically be loaded by drupal. It operates similarly to how style.css works for css files.

Submitted by Farina (not verified) on Mon, 06/23/2008 - 06:15.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><pre><blockquote>
  • Lines and paragraphs break automatically.
  • Insert Flickr images: [flickr-photo:id=230452326,size=s] or [flickr-photoset:id=72157594262419167,size=m].

More information about formatting options