Skip to content

Instantly share code, notes, and snippets.

@lsmith
Forked from web-zen/gist:169279
Created August 17, 2009 18:05
Show Gist options
  • Save lsmith/169282 to your computer and use it in GitHub Desktop.
Save lsmith/169282 to your computer and use it in GitHub Desktop.
<script type="text/javascript" src="frameworks/yui_2.7.0b/yui/build/yuiloader/yuiloader-debug.js"></script>
<script type="text/javascript" src="js/loader-config.js"></script>
<script type="text/javascript">
(function() {
_yuiloader_config.config.onSuccess = function () {
};
_yuiloader_config.config.onFailure = function () {
};
var loader = new YAHOO.util.YUILoader(_yuiloader_config.config);
// is this necessary?
var modules = _yuiloader_config.modules;
for (i=0; i < modules.length; ++i) {
loader.addModule(modules[i]);
}
// could this also be added to _yuiloader_config.config?
loader.require(["base","button", "element", "reset-fonts-grids", "yuiloader-dom-event", "maincss", "editarea", "editarealoader"]);
// Load the files using the insert() method.
loader.insert();
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment