Skip to content

Instantly share code, notes, and snippets.

@brianjmiller
Created March 2, 2012 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianjmiller/1960937 to your computer and use it in GitHub Desktop.
Save brianjmiller/1960937 to your computer and use it in GitHub Desktop.
YUI().use(
"console",
"file1",
"file2",
function (Y) {
// I'm a callback that runs as soon as all dependencies are loaded
}
);
YUI.add(
"file1",
function (Y) {
// code goes here that runs when loader loads this module
}
);
YUI.add(
"file2",
function (Y) {
// code goes here that runs when loader loads this module
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment