Skip to content

Instantly share code, notes, and snippets.

@syavorsky
Created December 8, 2012 01:56
Show Gist options
  • Save syavorsky/4238156 to your computer and use it in GitHub Desktop.
Save syavorsky/4238156 to your computer and use it in GitHub Desktop.
var onload = function() {
api_ready = true;
window.CD.conf(conf);
callback();
};
script.onload = onload;
script.onreadystatechange = function() {
if ('loaded' === script.readyState) {
onload();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment