UNPKG

curl-amd

Version:

curl.js is small, fast, extensible module loader that handles AMD, CommonJS Modules/1.1, CSS, HTML/text, and legacy scripts.

27 lines (20 loc) 590 B
<!DOCTYPE HTML> <html> <head> <title>data-curl-run test (with failover)</title> <script> function callback (value) { write('SUCCESS: data-curl-run should failover and execute second module.'); write((value == 1 ? 'SUCCESS' : 'FAILED') + ': data-curl-run should have loaded a module.'); function write (msg) { curl('domReady!', function () { document.body.appendChild(document.createElement('div')).innerHTML = msg; }); } } </script> <script src="../src/curl.js" data-curl-run="bundle-does-not-exist.js,stuff/run-script.js"></script> </head> <body> </body> </html>