millermedeiros/requirejs-plugins — pull request #39 by mhrisse (2013-10-05 19:25:20+00:00)
Title: async plugin: adding second parameter to support naming a global callbac...

...k function instead of the generated one.

This is very useful e.g. for using the async plugin with the YouTube Iframe API, which does not allow the callback function to be configured via the injected URL.

````javascript
require(
['async!//www.youtube.com/iframe_api!null:onYouTubeIframeAPIReady'],
function() {
// your code initializing and using e.g. the youtube iframe player.
}
);