

def load_script(url, onload, async):
    wnd().status = ('Loading ' + url)

    def onload_fn():
        wnd().status = ('Loaded ' + url)
        if (not (onload is None)):
            eval(onload)
        return True
    e = DOM.createElement('script')
    e.src = url
    e.type = 'text/javascript'
    e.language = 'javascript'
    url.defer = async
    e.onload = onload_fn
    doc().getElementsByTagName('head')[0].appendChild(e)

dataset/ETHPy150Open anandology/pyjamas/library/dynamic.py load_script/VarMisuse@95/121 `e`->`url`