Using javascript to asynchronously download another javascript file.
I understand that this can be done by inserting a new script tag onto the page with the src
attribute set to the file url.
I also need to run some code when the script is finished downloading. I've been using yepnope for this and they provide "callbacks" that execute when the script has finished downloading and executing.
How is this accomplished?
Thanks!