Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript JQuery Best Practices Re: JQuery Best Practices

#74121
johnseitz
Member

I actually found some answers on this (thanks to Chris Coyier for his help).

You should only be using one version of Jquery per page. This was my biggest issue. So don’t call in version 1.3.2 and 1.4.2 on the same page. Version 1.4.2 should cover anything that is in 1.3.2.

Also, in your header you should order:
1)style sheet call
2)library call (jquery 1.4.2 for example)
3) specific script calls (spasticNav.js for example)

Also, if you need to use another JavaScript library alongside jQuery you can use jQuery.noConflict()
http://api.jquery.com/jQuery.noConflict/
I will not pretend that I am expert enough to understand this method, but it might prove useful down the road.