“If the script is being loaded in the footer (which you should be doing in the vast majority of cases) you can wrap the code in an anonymous function (technically any IIFE) where you pass in jQuery to be mapped to $.”
(function($) {
// $ Works! You can test it with next line if you like
// console.log($);
})( jQuery );