bug_2531587.html revision 2de49bcedcda8f6d5efdf4240a2746e1fc0bae61
<!doctype html>
<html>
<head>
<title></title>
</head>
<body>
<h1>Loading..</h1>
<script src="http://127.0.0.1:3000/"></script>
<script>
var config = {
combine: true, // <---- CHANGE THIS TO FALSE AND LIBRARY WILL LOAD
groups: {
js: {
base: 'http://jsfiddle.net/js/',
modules: {
'test-load': {
path: 'jslint.min.js' // load from jsfiddle.net so no x-domain issues
}
}
}
}
};
YUI(config).use('node','test-load', function(Y) {
if (typeof JSLINT == 'undefined') {
Y.one('h1').setContent('library not loaded');
}
else {
Y.one('h1').setContent('library loaded');
}
});
</script>
</body>
</html>