Webflow sync, pageviews & more.
NEW

How can I ensure compatibility with the latest version of jQuery in newly published Webflow sites?

TL;DR

Webflow automatically includes jQuery 3.6.0, but if you need to ensure compatibility with a newer version, follow these steps.

1. Check Webflow’s Built-in jQuery Version

  • Webflow includes jQuery 3.6.0 as of recent updates.
  • If your code requires a newer version, you must manually override the default jQuery.

2. Load a Newer jQuery Version Manually

  • Remove Webflow’s default jQuery to prevent conflicts:
  1. Open Project Settings > Custom Code.
  2. In the Footer Code section, add:
    ```html ')```
  3. Replace 3.x.x with the latest jQuery version number from jQuery’s official CDN.

3. Test Existing jQuery Functions

  • Ensure any custom scripts using jQuery still function correctly.
  • Use the browser console (F12 > Console) to check for errors or deprecated functions.

4. Verify Webflow Interactions Compatibility

  • Some Webflow interactions rely on jQuery.
  • If interactions break, use Webflow’s default version or test compatibility with .noConflict() mode:
    ```html```

5. Publish & Test

  • Publish your site and check functionality on multiple browsers.
  • Open the browser console to confirm no compatibility errors appear.

Summary

Webflow uses jQuery 3.6.0, but you can override it by adding a custom script in the footer. Ensure your custom code and Webflow interactions remain functional after switching jQuery versions. Always test your site thoroughly after making changes.

Rate this answer

Other Webflow Questions