Implementing NoConflict into my template

Discussion regarding Joomla! 2.5 Performance issues.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
jdran
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 186
Joined: Thu Aug 16, 2012 5:32 pm

Implementing NoConflict into my template

Post by jdran » Mon Feb 18, 2013 10:44 pm

I want to make a template for Joomla 2.5 using HTML5 (for making older IE understand new elements I was going to use the html5shiv.js) and I was looking for how can I implement the noConflict method and I found this (old) article:

Jquery in Joomla

I don't know if it is still current but I guess it is. However, I don't understand this part:
Also, distributing multiple copies of jQuery discourages the use of Google’s JavaScript library CDN.
Does it mean I should avoid loading the jquery using the Google API?
I was planning to call the latest-version such as:

Code: Select all

<script src="http://code.jquery.com/jquery-latest.min.js"
        type="text/javascript"></script>
but what the author said made me worrying that there may be a problem in the future.

Also, as another question, is there a reason I should consider using a plugin such as JqueryEasy? I mean, why should I want another plugin installed if I can do it directly into my template?

alwarren
Joomla! Guru
Joomla! Guru
Posts: 527
Joined: Fri Aug 19, 2005 9:27 am

Re: Implementing NoConflict into my template

Post by alwarren » Tue Feb 19, 2013 1:03 am

This link has some nice examples of using jQuery with Joomla in no conflict mode - http://forum.jquery.com/topic/integrati ... nto-joomla.
Al Warren
This ain't my first rodeo. Red Foreman says it best.
CQDX de WR5AW


Locked

Return to “Performance - Joomla! 2.5”