Without adding jQuery via a CDN I receive the following error message with many of my custom code functions no longer executing: Uncaught ReferenceError: $ is not defined
These errors go away when I include this version of jQuery in my <head>: https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js
I A/B’ed the two scripts and they are identical. https://d1tdp7z6w94jbb.cloudfront.net/js/jquery-3.3.1.min.js
I understand it is loaded by default, but I receive the Uncaught ReferenceError: $ is not defined if I do not load in https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js.
Without including my own version of it in custom code, Webflow’s version is giving me console errors, specifically Uncaught ReferenceError: $ is not defined.
The best way to debug your JS code, is using the browser console. You can test out jQuery selectors and functions right there. Work out your issues, then update your sites Custom Code.
Your issue might be due to your code loading before jquery is loaded.
Try including your code in the page setting under the “Before </body> tag” section. If you need the code globally, add it to the Project Setting Custom Code section under Footer Code.