После загрузки jQuery
if (typeof $ == 'undefined') { var $ = jQuery; }
Ссылка:
https://v123.tw/fix-jquery-typeerror-not-function/