如何从从 <head> 内的 <script> 标记加载的脚本请求中获取 jqXHR 对象

How to get jqXHR object from script request that is loaded from <script> tag inside <head>

jQuery 的 getScript() returns 加载脚本时的 jqXHR 对象。 当脚本从位于 head 标签内的脚本标签加载时,有没有办法获取 jqXHR 对象?

function makeScript(url){    
    script = document.createElement("script");
    script.src = url;
    //when this line is executed the script will be loaded by the browser
    //how to get the jqxhr object
    document.head.appendChild(script); 
}

没有,因为没有。浏览器本机处理一切。