var jq = document.createElement('script'); //You can change the JQUERY-VERSION jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"; document.getElementsByTagName('head').appendChild(jq); // ... give time for script to load, then type (or see below for non wait option) jQuery.noConflict();
i got this trick from
developer’s best friend stackoverflow
Now the jquery is available from “jQuery” command, if you’d rather dollar sign $ just assign it
$ = jQuery
The idea is, we create a new script element, and change the source attribute to jquery (or whatever library/js you need later).