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

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

That is really amazing dear buddy keep it up and say all is well. High Pagerank Backlinks
Buy High Pagerank Backlinks
High Pagerank Backlinks

I was also searching related stuff from long time.You have solved my problem.Thanks for sharing this great stuff with us High Pagerank Backlinks
High PR Backlinks

The world is changing fast. people are also being changed.day by day we are becoming more dependant on degital system.yoU make me think of this really.You have a nice way of sharing your thoughts. Generate Bitcoins Online

orlando cab company
I really like the dear information you offer in your articles. I'm able to bookmark your site and show the kids check out up here generally. Im fairly positive theyre likely to be informed a great deal of new stuff here than anyone else!

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

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..oz naturals vitamin c serum

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 complaintsEvoWPThemes

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

modify each bootstrap which is bad because Bootstrap is Apache licensed and Drupal's repository is GPLv2 which are not compatible with each other self storage Guam

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

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.
blog

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 meble pokojowe Unimebel

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

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 DogBoardingTexas.com find a kennel near you

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.Disney Movie Club 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. 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

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.