UNPKG

lfr-amd-loader

Version:

AMD Loader with support for combo URL and conditional loading

76 lines (57 loc) 2.29 kB
<!DOCTYPE html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Test Alloy Loader</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> <h1>Alloy Loader like test page</h1> <script src="//localhost:8080/demo/config/config.js"></script> <script src="//localhost:8080/loader.js"></script> <script> require(['chema/chemaps/aui-chemaps', 'aui-dialog'], function(chemaps, dialog) { debugger; chemaps.log('nate'); dialog.log('nate'); }, function(error) { debugger; console.log(error); }); require(['chema/chemaps/aui-chemaps', 'ambrin/aui-ambrin'], function(chemaps, dialog) { debugger; chemaps.log('nate'); dialog.log('nate'); }, function(error) { debugger; console.log(error); }); // Export global function for demo purposes, use some assertion library on production. // var assertValue = function(value) { // if (value === null || typeof value === undefined) { // throw value + ' is not defined or null'; // } // }; // require(['aui-dialog'], function(exports) { // debugger; // console.log('require1'); // // nate.log('nate'); // // window.chema.log('chema loaded too!'); // }, function(error) { // debugger; // console.error(error); // }); // require('aui-base', 'aui-core', function(exports) { // debugger; // console.log('require2'); // // base.log('base'); // // nate.log('nate'); // // window.chema.log('chema loaded too!'); // }, function(error) { // debugger; // console.error(error); // }); </script> </body> </html>