Skip to content

Instantly share code, notes, and snippets.

View hojberg's full-sized avatar
🔮
Building UIs for Unison

Simon Højberg hojberg

🔮
Building UIs for Unison
View GitHub Profile
@kara-ryli
kara-ryli / yui.loader.js
Created February 11, 2011 22:21
The many ways to manage dependencies in YUI3
// Add modules globally
(function () {
var cfg = window.YUI_config || {};
cfg.modules = cfg.modules || {};
// Add external dependencies
cfg.modules.externalDependency = {
fullpath: '/path/to/script.js',
requires: ['node', 'event']