intl-load.html revision 2a9f7341188bd35cc1219e55fa04931e6b89cc1f
5643c7b4134ddde676793094a1c178f7e2614e3dMatt Sweeney<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
5643c7b4134ddde676793094a1c178f7e2614e3dMatt Sweeney<html>
5643c7b4134ddde676793094a1c178f7e2614e3dMatt Sweeney<head>
5643c7b4134ddde676793094a1c178f7e2614e3dMatt Sweeney <title>Loader Intl Order Test</title>
5643c7b4134ddde676793094a1c178f7e2614e3dMatt Sweeney <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5643c7b4134ddde676793094a1c178f7e2614e3dMatt Sweeney</head>
<body>
<script src="/build/yui/yui-debug.js"></script>
<script>
YUI({
filter:"raw",
modules : {
mymod: {
type : "js",
fullpath : "mymod.js",
requires: ["datatype-date"]
}
}
}).use("oop" /* just some random module */, function(Y) {
// lazy load module with datatype-date dependency
Y.use("mymod", function(Y) {
Y.log("NESTED USE RESULT: module which requires datatype-date: " + Y.MyMod.formatDate());
});
});
YUI({
filter:"raw",
lang:"fr-FR",
modules : {
mymod: {
type : "js",
fullpath : "mymod.js",
requires: ["datatype-date"]
}
}
}).use("mymod", function(Y) {
Y.log("SIMPLE USE RESULT: module which requires datatype-date: " + Y.MyMod.formatDate());
})
</script>
</body>
</html>