Load JavaScript files dynamically

var jsElm = document.createElement("script");
jsElm.type = "application/javascript";
jsElm.src = "https://cdn.dotmaui.com/libs/jquery/3.6.0/jquery.min.js";
document.head.appendChild(jsElm);

Leave a Comment

Your email address will not be published. Required fields are marked *