Updating to jquery 1.2.2 (contains also noticeable performace optimization)

sinasalek - January 16, 2008 - 19:44
Project:jQuery Update
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

jquery released a new version which contains bug fix and 300% speed improvement.
is there any plan for updating to this version ?

http://jquery.com/blog/2008/01/15/jquery-122-2nd-birthday-present/

#1

smitty - January 17, 2008 - 17:56

Perhaps I am a little bit stupid, but I downloaded jquery-1.2.2.min.js from http://jquery.com/, renamed the file to jquery.js, copied it into the ‘misc’ folder and the ‘sites/all/modules/jquery_uppdate’ folder and everything works fine. In the Status report is shown: 'The current installed version of JQuery is 1.2.2'.

Isn't this sufficient? Is the drupal jquery.js to be expected something other than jquery-1.2.2.min.js?

#2

momendo - January 17, 2008 - 18:01

There's more to it than that. There's already a tracking bug for this issue for 1.2.1

#3

sinasalek - January 18, 2008 - 08:36

No unfortunately it's not that easy, there is some backward incompatibility in this version.
http://drupal.org/node/156221
http://drupal.org/node/210131

#4

lefnire - January 26, 2008 - 05:13

i'd like to use 1.2.3a. Is there no way to get this module working with whatever the latest jquery version is?

maybe even, for example, you can ship it with it's current 1.2 upgrade, and include a readme.txt for how the user can upgrade to any version (by copying certain code from 1.1 and pasting it at location x in the new .js file, or what have you).

#5

Hoesh - January 31, 2008 - 12:23

Hell, is here any experienced professional of this field?

Just profiled my JavaScript while tuning page loads on my site, and jQuery's unpacker
draws 0.6s to page loading time on my powerhorse! jQuery initializes really slowly. That is, the "e=function(p,a,c,k,e,d){"
At the front of jquery.js. Even caching and gzip compression is faster way ahead.

Worked around this problem by substituting the unpacked version of jQ 1.1.2 from the main site,
this cancelled a lot of calls, and saved som load time.

Now attr() & isXMLDoc() have over than 15000 calls at page load, which takes over than 1 sec.

I guess jQ 1.2 have cancelled this problem, that caused significant performance improvement,
but all I can do is praying for someone who knows what to do.

#6

westwesterson - February 12, 2008 - 21:51

Unless someone takes the time to upgrade all the existing .js files in core to jquery 1.2.x this probably will not be happening before drupal 6. There currently is no way to provide backwards compatibility from jquery 1.0.4 to 1.2.x even within the jquery community. So basically, don't expect any jquery 1.2.x or higher js for drupal 5. This will be one of the reasons to upgrade to drupal 6....

#7

Wim Leers - May 4, 2008 - 18:48
Status:active» duplicate

1.2.3 has been included: http://drupal.org/node/156221.

 
 

Drupal is a registered trademark of Dries Buytaert.