<html>
<head>
<title>Loader Intl Order Test</title>
</head>
<body>
<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>