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

That is very interesting Smile I love reading and I Cipto Junaedy always searching for informative information like this Jadwal MotoGP 2015. This is exactly what I was looking for Cara Upload Video ke Youtube.  Really this system so amazing. Cipto Junaedy  so happy to browsing this BBM Untuk Android Versi Terbaru. Simply fill out a quick and easy application, and you'll be on your way to getting your new Cara Membuat Email  and Cara Instal Windows 7 avoiding Thanks for sharing this great article . Don't forget for reading the articles about Jinpoker.com Agen Judi Poker Online dan Domino Online Indonesia Terpercaya. And I encourage you to bookmark the following page if Cahayapoker.com Agen Judi Poker Dan Domino Uang Asli Online Terpercaya Indonesia considered important ... Regards

I was just looking at your mobil bekas site and see that your website has the potential to become very popular. I just want to tell you, In case you didn’t already know… There is a website service which already has more than 16 million users, and the majority of the users are looking for niches like yours. By getting your site on this service you have a chance to get your site more popular than you can imagine. It is free to sign up and you can read more about it here: jersey bola grade ori – Now, let me ask you… Do you need your website to be successful to maintain your way of life? Do you need targeted visitors who are interested in the services and products you offer? Are looking for exposure, to increase sales, and to quickly develop awareness for your site? If your answer is YES mobil bekas & baru jakarta hari ini jualmobilbekas.hol.es , you can achieve these things only if you get your site on the network I am describing. This traffic network advertises you to thousands jersey real madrid, while also giving you a chance to test the service before paying anything. All the popular blogs are using this network to boost their traffic and ad revenue! Why aren’t you? And what is better than traffic? It’s recurring traffic! That’s how running a successful site works… Here’s to your success! Read more here: cara bisnis online - okefix.com

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

Thank you for taking the time to publish this information very useful!
facebook

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

I love seeing websites that understand the value of providing a quality resource for free. It is the old what goes around comes around routine.
dr. christiane buehlern's hsv eraser examples

I would like thanks to that post about Medical Assistant. That was really informative. Hopefully you will continue posting more bright insights.
switch energy provider

Great post I would like to thank you for the efforts you have made in writing this interesting and knowledgeable article.
über das System

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. Quantum Vision System Review

It feels awe-inspiring to read such informative and distinctive articles on your websites.
Panasonic TX-50A400B

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.