$.getScript, but for stylesheets in jQuery?
CSS is not a script, so you dont have to “execute” it in the sense of script execution. Basically a <link> tag created on the fly and appended to the header should suffice, like $(‘<link/>’, { rel: ‘stylesheet’, type: ‘text/css’, href: “https://stackoverflow.com/questions/14919894/path_to_the.css” }).appendTo(‘head’); or var linkElem = document.createElement(‘link’); document.getElementsByTagName(‘head’)[0].appendChild(linkElem); linkElem.rel=”stylesheet”; linkElem.type=”text/css”; linkElem.href=”https://stackoverflow.com/questions/14919894/path_to_the.css”; if you want … Read more