I try to add script tag in shopify theme. i put jquery library in top of the my js file. without change liquid file code add js in theme.
var xmlhttp = new XMLHttpRequest();
xmlhttp.open(“PUT”, “https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js”);
xmlhttp.onreadystatechange = function () {
eval(xmlhttp.responseText);
js code here
}
xmlhttp.send();
But it work some time, not work every time. so please give proper solution.
Thank You