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

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

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

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

Thanks for a very interesting blog. What else may I get that kind of info written in such a perfect approach? I’ve a undertaking that I am simply now operating on, and I have been at the look out for such info.
Tips and Tricks @ thealphahuman.com

I would likewise persuade pretty much every individual to spare this site page for any most loved help to support posted the appearance.
Boom Beach Hack

I agree with you. This post is truly inspiring. I like your post and everything you share with us is current and very informative, I want to bookmark the page so I can return here from you that you have done a fantastic job .. - See more at:
Fort Myers Gated Communities

Hi there, I found your blog via Google while searching for such kinda informative post and your post looks very interesting for me.
https://archive.org/details/girlfriend-activation-system-review

Your music is amazing. You have some very talented artists. I wish you the best of success.
rap music top videos

Thanks so much for sharing this awesome info! I am looking forward to see more postsby you!
https://rebelmouse.com/texttheromancebackmichaelfiore/

I unearthed a real estate page, OC Housing News. While investigating this web page, I stumbled upon an incredible real estate bubble PDF download, The Great Real Estate Crash eBook. The housing analysis and real estate news reporting on this website is excellent, the cartoons and writing are entertaining and insightful, and I found the downloadable guides very useful. I suggest seeing this page to tour what it has to offer.
Housing Market News

This is a great inspiring article.I am pretty much pleased with your good work.You put really very helpful information. Keep it up. Keep blogging. Looking to reading your next post.
rebelmouse

Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.
car insurance average cost per month

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 Teddy Tanks

Really it is a brilliant work. Keep on guys...ballpetsreviews.com

I will definitely dig it and personally recommend to my friends. .
Snapchat Users

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.