Created
April 5, 2012 02:45
-
-
Save kara-ryli/2307607 to your computer and use it in GitHub Desktop.
FIXME: Configure loader to work correctly with multiple CDNs and a third-party hosted YUI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Loader Test</title> | |
<meta name="generator" content="TextMate http://macromates.com/"> | |
<meta name="author" content="Ryan Cannon"> | |
<script src="http://www.nfl.com/yui/3.4.1/build/yui/yui-min.js"></script> | |
<script> | |
var YUI_config = { | |
base: "http://www.nfl.com/yui/3.4.1/build/", | |
comboBase: "http://www.nfl.com/yui/min2/index.php?3.4.1&b=yui3%2F3.4.1%2Fbuild&f=", | |
comboSep: ",", | |
combine: true, | |
root: "", | |
groups: { | |
nfl: { | |
base: "http://s.nflcdn.com/static/site/3.13/scripts/modules/", | |
combine: true, | |
comboBase: "http://www.nfl.com/yui/min2/index.php?4e5068554e2a25373b5c714c3f&b=yui3%2Fstatic%2F3.13%2Fscripts%2Fmodules&ss=anyraw&f=", | |
root: "", | |
modules: { | |
"twitter-linkify": {} | |
}, | |
}, | |
gallery: { | |
combine: true, | |
comboBase: "http://yui.yahooapis.com/combo?", | |
patterns: { | |
"gallery-": { group: "gallery" }, | |
"lang/gallery-": { group: "gallery" }, | |
"gallerycss-": { type: "css", group: "gallery" } | |
}, | |
base: "http://yui.yahooapis.com/gallery-2011.09.14-20-40/build/", | |
root: "gallery-2011.09.14-20-40/build/", | |
name: "gallery", | |
update: function (J) {var K=(J||A)+E;y.gallery.base=D+K;y.gallery.root=K;} | |
}, | |
yui2: { | |
combine: true, | |
ext: false, | |
comboBase: "http://yui.yahooapis.com/combo?", | |
patterns: { | |
"yui2-": {group: "yui2"} | |
}, | |
base: "http://yui.yahooapis.com/2in3.4/2.9.0/build/", | |
root: "2in3.4/2.9.0/build/", | |
name: "yui2", | |
update: function (K, L) {var J=C+"."+(K||B)+"/"+(L||z)+E;y.yui2.base=D+J;y.yui2.root=J;} | |
} | |
} | |
}; | |
YUI().use("twitter-linkify", "node", "gallery-form-values", "yui2-button", function (Y) { | |
console.log("Yay!"); | |
}); | |
</script> | |
<!-- Date: 2012-04-04 --> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment