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 like your post. It is good to see you verbalize from the heart and clarity on this important subject can be easily observed. hormone replacement
Home Design

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. High Pagerank Backlinks
High Pagerank Backlinks
High Pagerank Backlinks

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. дизайн студия интерьера
дизайн интерьера Москва

Davidjohn
What kind of customization do you allow via bootstrap. providing new services

it somehow never had before in all those nights we made love and all those mornings. which you can read at TownHall

it somehow never had before in all those nights we made love and all those mornings..mesothelioma treatment

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. Buy Backlinks
High Pagerank Backlinks

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..http://ca.linkedin.com/pub/marnie-bennett/a/939/889

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.
ejercicios para bajar de peso

About 40% of the plant’s total N is taken up after flowering in modern hybrids, Vyn says. Furthermore, simply looking for hybrids with the darkest green leaves, which suggests healthy N metabolism, may have no bearing on a plant’s final yield or its final NUE.execution of global derivatives

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. loft conversion costs London

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. Lawyer Assistants

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. http://frendiode.newsvine.com/_news/2014/05/14/23879997-what-venture-capitalists-like-marc-sparks-want-to-hear

never had before in all those nights we made love and all those mornings Free PDF Links

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.Samsung fridge freezer parts

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 periodSales Tax Calculator

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.Agen Bola

The old lady wanted a cancer pink-ribbon fabric, and the woman she ultimately tackled had called ahead and ordered a bulk amount of it, because she works for a cancer organization and makes blankets for cancer patients. make video

There were some concepts by the author which were essential. I have stored your blog.audi servicing

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. http://vreicazarecostinesti.blogspot.ro/

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. DHL Login

I am quite pleased with this site. There were some concepts by the author which were essential. I have stored your blog. Margarita Shelton

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.how can i get more energy to workout

Karla Delgado
I am quite pleased with this site. There were some concepts by the author which were essential. I have stored your blog. Karla Delgado

I am quite pleased with this site. There were some concepts by the author which were essential. I have stored your blog. Citibank opinie

“Remote sensing can measure the plant health status by looking at crop with two different wavelengths,” he says. “It really pulled us forward as far as N is concerned.”http://www.findthebest.com/profile/429829/Marnie-Bennett

Remote sensing can measure the plant health status by looking at crop with two different wavelengths,” he says. “It really pulled us forward as far as N is concernedWrite To Learn Student Login

doctor in atlanta ga
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. doctor in atlanta ga

Yoսr style is ѵery unique compared to other folks I've read
stuff from. Thank you for poѕtіng whеn уou have thе opportunity, Guess I աill just bookmark this blog.Reflex Math Login

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.Christian Broda

I am quite pleased with this site. There were some concepts by the author which were essential. I have stored your blog.
http://www.slideshare.net/BradleyReifler

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. frequently asking moving questions

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.to find chiropractors in Pennsylvania

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.Grenada hotels

I am quite pleased with this site. There were some concepts by the author which were essential. I have stored your blog...CEG TEK International

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. Silk Screen Supplies

tech news
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. tech news

thanks for the amazing content on your blog I am very interested in this article and you have really helped me. for more online sites

I thought it was going to be some boring old post, but it really compensated for my time. I will post a link to this page on my blog. I am sure my visitors will find that very useful. Jody Wolfe

drama method aaron fox
No issue if you experienced the book or not, keeping in mind certain information about the book will help with the completed review. drama method aaron fox

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.