Shorthand method to include a script into the DOM.
$.getScript(url[, success]); // => voidSee $.ajax() for a description of the input parameters.
For asynchronous requests, the generated XMLHttpRequest object will be returned. Synchronous requests will return undefined.
The following example includes a script and runs a callback function on success:
$.get(
"/javascript/chart.js",
function () {
console.log("Script loaded");
}
);Dabby doesn't return a deferred object like jQuery does, so you cannot chain any deferred methods to this method.