Is there something I can wrap around the body of my jquery include file to prevent it from being included twice? My problem is that my application has multiple includes and I want to prevent jquery from being referenced in multiple includes and breaking.
My thoughts would be to open my jquery file (jquery-1.4.2.js) and put some sort of logic around the entire block of jquery library code.
Something like:
if (jQueryIsAlreadyIncluded())
{ //jquery library code
{(function(A,w){function ma(){if(!c…….}
Try this