Javascript failure due to jQuery update

Recently we’ve been made aware that our customer website JavaScript sliders and other related scripts stopped working a few days ago. This is not a server related issue. The JavaScript runs on the Client side which runs from website coding itself.

On the 15th of January 2013, jQuery released a new 1.9 version. Any website that links to the jquery-latest.js will automatically use the newest version of jQuery. Unfortunately, this new version is not working with some of the older functions. If your site JavaScript sliders or other jQuery related JavaScript stop working from the 15th, you may be using the jquery-latest.js from jQuery.

Important! This is a fix that requires code editing. If you are not a developer and are not comfortable with editing code, you will want to contact your developer to fix the jQuery plugin version on your site.

General steps to Fix the jQuery JavaScript error

  1. The script that links your site to jQuery is located in the head section of the website. Open your website header code in a code editor.
  2. Scrpt for jQuery

    Locate the script that contains the code for your jQuery. It should look like the following.

    <script type='text/javascript' src='https://code.jquery.com/jquery-latest.js?ver=2358'></script>

  3. Download for jquery

    Change the link from jquery latest to an older version. You can get the jQuery versions at the following link.

    Download jQuery

    When clicking the download link, you can get the url for the jQuery code in the browser address bar.

  4. jQuery link to jquery-1.8.3.min.js

    Get the link for the 1.8.3 Version.

    https://code.jquery.com/jquery-1.8.3.min.js


  5. Paste the url in your script so it looks like the following:
    <script type='text/javascript' src='https://code.jquery.com/jquery-1.8.3.min.js'></script>
    Save the changes.

    Now your JavaScript should work again.

If these steps did not fix the issue, then you may have another issue causing the site to not work that is not related to jQuery. You will want to contact your developer for a fix. Unfortunately, we do not have any support on this type of coding issue as it is not server related.

Was this article helpful? Join the conversation!