Updating jQuery in Drupal the Right Way

I recently made a blog post about how to upgrade Drupal's jQuery version from 1.4.4 to 1.8. The problem is, popular contrib modules (views being the main culprit here) and even some core jQuery require an outdated version of jQuery (be 1.4.4, to be exact.). There is a module called jQuery Update, and it works well, but if you need a self contained theme (with no module dependancies) this might be helpful to you. In the last post, I didn't include details on how to use jQuery in noConflict mode, so I'll explain how it's done. As always, this is included in Base Building Blocks. I decided to add it by default after a number of complaints. (makes sense.)

The Good Stuff

I included a copy of jQuery 1.8 at the top of my html.tpl.php file before I load the Drupal scripts. I was going to use a page process function and use drupal_add_js, but I had trouble adding a weight that was less than the default version of jQuery.
window.jq8 = jQuery.noConflict();
Then you can use the updated version of jQuery like so:
(function ($) {
    //Your Code
}(window.jq8));

What Sucks...

What really sucks is loading two copies of jQuery. If you have any other suggested method of doing this, please let me know! I'm always open to ideas. There is a jQuery update module that handles updating jQuery very well, I would suggest use of that. However when you are building a theme for someone that needs to work without dependancies, this is one way to go about it.

Comments

http://drupal.org/project/jqmulti was build for this exact use case. I didn't make it, but I use it

The problem with your way is that you have to modify each bootstrap which is bad because Bootstrap is Apache licensed and Drupal's repository is GPLv2 which are not compatible with each other. unlock her legs reviews

The problem with your way is that you have to modify each bootstrap which is bad because Bootstrap is Apache licensed and Drupal's repository is GPLv2 which are not compatible with each oth
one of Igor\'s favorite jobs

You've been given the task to create a book report but aren't sure how to go about doing so. No issue if you experienced the book or not, keeping in mind certain information about the book will help with the completed review. athenaNet Login

I am quite pleased with this site. There were some concepts by the author which were essential. I have stored your blog. Thanks for the useful period. Assurant Renters Insurance Login

it somehow never had before in all those nights we made love and all those mornings... electric dog fence problems

it somehow never had before in all those nights we made love and all those mornings..Gerald Taylor

I will definitely dig it and personally recommend to my friends. I am confident they will be benefited from this site .jual celana chino

I will definitely dig it and personally recommend to my friends. .
interesting read

I will definitely dig it and personally recommend to my friends. http://new.spring.me/#!/user/AntiqueWineComp/timeline/responses

I want to thank you for this great and valuable information. how to hack a facebook account

Hey there thanks for showing me this. I must say that your blogpost was the most enjoying read I've seen in a long time. Greetings from
how to be rich

GrandOption is similarly a far-reaching and exclusive possibilities trading organization. It now has offices around Europe and USA. is just a personal holding company, providing binary trading to 80 countries international.

Filmmaker Ravine Change , Datascrip said " Reedlike soul sophistication and hybrid ink method printer, gives author evaluate for its users to play the situation illustrator wild and sensual , " if you need the driver printer, you can check at read more
They all go together with Epson\'s built piezo-electric subject proverbial as PrecisionCore that, per the company\'s spokespersons, doubles photograph grade whereas doubling if you need the driver printer, you can check at 2downloaddriver
From the leaked it , mentioned the Samsung Collection Set 2 performed with sib SIM , 4.5 in. WVGA direct ( 480x800 pixels ) and a quad-core processor 1.2 GHz , quicker than their predecessors that the if you need the gadgets info, you can check at gadgetsdrunk
Request the exclusive angle , not notable manifestly his sincere write , yet by worldcarfans , weekday ( seventeen / 04 ) , if you need the last info about car automotive, you can check at yourautocar
Canon Pixma Mp560 Driver For Windows, Mac OS X, and Linux Download, but let me to review the printer first. The days of dropping three hundred bones on AN all-in-one printer square measure dwindling, whereas $150 devices just like the Canon Pixma MP560 square measure quickly taking their place on retail shelves. The MP560 appearance nice ANd offers helpful options like an auto-document if you need the last info update about technology, you can check at echokita
To any raise human publication caliber, PIXMA MG7570 adopts a 6-color mortal ink scheme with the element of achromatic ink tank to spicery up the vesture sound in B&W someone printing, understandably sharing the hatched and shining if you need more info about geophysics, you can check at read more

I want to thank you for this great and valuable information...to contact the Antique Wine Company

Amazing blog with good information . where can i buy diazepam online

I want to thank you for this great and valuable information...
APUS Login

Hey there thanks for showing me this. I must say that your blogpost was the most enjoying read I've seen in a long time. Greetings from High Pagerank Backlinks
Buy Backlinks

You have a good point here!I totally agree with what you have said!!Thanks for sharing your views...hope more people will read this article!!!
how do i talk dirty to my boyfriend in bed

You have a good point here!I totally agree with what you have said!!Thanks for sharing your views..
Just Answer

Very useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up.
cheap dissertation

FreeDebtConsolidationQuotes.com
I must say, I thought this was a pretty interesting read when it comes to this topic. Liked the material. . .

I can see that you are an expert at your field! I am launching a website soon, and your information will be very useful for me.. Thanks for all your help and wishing you all the success in your business.
report on strategic campaigns inc

This is the type of information I’ve long been trying to find. Thank you for writing this information.
https://www.rebelmouse.com/venusfactorsystemreview/

Hey there thanks for showing me this. I must say that your blogpost was the most enjoying read I've seen in a long time. Greetings from дизайн интерьера Москва
дизайн интерьера Москва

I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. Hats off to you! The information that you have provided is very helpful.
stop loss order
stop loss order

Very well written post. It will be valuable to everyone who utilizes it, including myself. asvab practice tests

useful information on topics that plenty are interested on for this wonderful post.Admiring the time and effort you put into your b!..
win your ex girlfriend back from another man

This is highly informatics, crisp and clear. I think that everything has been described in systematic manner so that reader could get maximum information and learn many things. Osteopath near Putney

information on topics that plenty are interested on for this wonderful post.Admiring the time and effort you put into your b....donblogger

plenty are interested on for this wonderful post.Admiring the time and effort .......Click Here

What a blog post!! Very informative and also easy to understand. Looking for more such comments!! Do you have a facebook? I recommended it on digg. The only thing that it’s missing is a bit of new design.
Car and home insurance

Pretty good post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog posts. Any way I'll be subscribing to your feed and I hope you post again soon. http://www.spekhargaponsel.com and visit now information in this site health situsmedis

Actually I read it yesterday but I had some thoughts about it and today I wanted to read it again because it is very well written.
best eye wrinkle cream

I simply want to tell you that I am new to weblog and definitely liked this blog site. Very likely I’m going to bookmark your blog . You absolutely have wonderful stories. Cheers for sharing with us your blog.
IIFYM

micro farming on a budget
This is a great article, Thanks for giving me this information. Keep posting.

Great post! I am actually getting ready to across this information, is very helpful my friend. Also great blog here with all of the valuable information you have. Keep up the good work you are doing here.
how to win her heart back from

Wonderful website, stick with it to wearing hijab from Indonesia beauty and make your dream come true. cara memakai jilbab | olive oil for hair | steam mop reviews |

I’m inspired with the surpassing and preachy listing that you furnish in such little timing.
Targeted Traffic

Charming worthy announce. I hardly stumbled atop your blog plus liked to talk that I own very loved lesson your blog announces. Some means I’ll be subscribing to your furnish moreover I faith you inform encore presently.
blogging tips

I love the blog. Great post. It is very true, people must learn how to learn before they can learn. lol i know it sounds funny but its very true. . .
Shari Ruiz

I've just decided to create a blog, which I have been wanting to do for a while. Thanks for this post, it's really useful!
Shari Ruiz

Someone Sometimes with visits your blog regularly and recommended it in my experience to read as well.
free Classifieds ads post

i found so mmany interesting stuff in your blog especially its discussion..thanks for the post!
Pakistani Suits Wholesaler

I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. Thanks...
https://www.rebelmouse.com/reviewsfatlossfactor/

Glyphicons image icons, but that didn't happen. Oh well! Base Building Blocks includes Font Awesome anyhow tacho pro 2008

As a Newbie, I am permanently exploring online for articles that can be of assistance to me. Thank you
effective home remedies for tinnitus

Your work is very good and I appreciate you and hopping for some more informative posts.
PMP course in Singapore

Hmm… I read blogs on a similar topic, but i never visited your blog. I added it to favorites and i’ll be your constant reader.
click here

The internet is bogged down with bogus blogs with no real message but the post was fantastic and well worth the read.Thank you for sharing this with me.
https://rebelmouse.com/magicofmakinguptdubjackson/

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.