What's the Zepto equivalent of jQuery.getScript()?

jquery, zepto

Solution

This works appended to zepto.js!

;(function ($) { 
    $.getScript = function(src, func) {
        var script = document.createElement('script');
        script.async = "async";
        script.src = src;
        if (func) {
           script.onload = func;
        }
        document.getElementsByTagName("head")[0].appendChild( script );
    }
})($)

Problem

What's the Zepto equivalent of jQuery.getScript()? I need to dynamically load a JavaScript file with both libraries.

Original source