Results 1 to 4 of 4

Thread: jQuery just tanked

  1. #1
    Senior Member LBA's Avatar
    Join Date
    Jan 2010
    Location
    California
    Posts
    543

    Default jQuery just tanked

    jQuery is not my specialty. I had a NOF12 site with inserted jQuery code and not long ago I updated to NOF13. Nothing on the page has changed but I just discovered that my jQuery features are broken. Is there some situation where NOF's jQuery version can interfere with the jQuery calls I'm making? My calls to jQuery look like this:

    <script type="text/javascript" src="https://www.google.com/jsapi?key=iQNq2p1QFHJTWygOiiT7Irs3SdvcnVt8"></script>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js"></script>

  2. #2
    Senior Member LBA's Avatar
    Join Date
    Jan 2010
    Location
    California
    Posts
    543

    Default

    I just did a comparison of the same page when published by NOF12. The difference is that NOF13 is adding the following to the page.

    <SCRIPT TYPE="text/javascript" SRC="../assets/jquery.js">
    </SCRIPT>
    <SCRIPT TYPE="text/javascript" SRC="../assets/modernizr-custom.js">
    </SCRIPT>
    <SCRIPT TYPE="text/javascript" SRC="../assets/jquery-ui.js">
    </SCRIPT>
    <SCRIPT TYPE="text/javascript" SRC="../assets/polyfiller.js">
    </SCRIPT>

    What is that? Do I need it? How do I get rid of it?

  3. #3
    Senior Member LBA's Avatar
    Join Date
    Jan 2010
    Location
    California
    Posts
    543

    Default

    So when I manually edit the page and remove this...

    <SCRIPT TYPE="text/javascript" SRC="../assets/jquery.js"></SCRIPT>
    <SCRIPT TYPE="text/javascript" SRC="../assets/modernizr-custom.js"></SCRIPT>

    ...my jquery features are working again. I didn't have this issue in NOF12. Can I tell NOF not to add those jquery calls? If I move the site to NOF15 will that solve the jquery conflict?
    Last edited by LBA; 02-07-2015 at 02:46 PM.

  4. #4
    Senior Member LBA's Avatar
    Join Date
    Jan 2010
    Location
    California
    Posts
    543

    Default

    In case anyone is following this journey, switching to NOF15 did not help and it so far appears there's no way to defeat NOF13 and 15's insistence on publishing it's own version of jQuery. But I did discover that if I insert my jQuery calls after the HEAD tags instead of inside of them, then my jQuery takes precedence over NOF's and the problem appears to be solved.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •