Basically curl.js allows the developer to control the script loading process.
Works with AMD and non-AMD compliant JavaScript files.
Features:
- Loads CommonJS AMD-formatted JavaScript modules in parallel
- Loads CommonJS Modules (v1.1 when wrapped in a define())
- Loads CommonJS Packages (v1.1 modules wrapped in a define())
- Loads non-AMD JavaScript files in parallel, too
- Loads CSS files and text files in parallel
- Waits for dependencies (JS, CSS, text, etc) before executing JavaScript
- Waits for domReady, if/when desired
- Allows for virtually limitless combinations of files and dependencies
- Tested with Chrome, FF3+, Safari 3.2+, IE6-8, Opera 9.5+
What is new in this release:
- Protect more API functions in plugins and loaders from closure compiler's aggressive obfuscation.
- Switch to newer //# sourceURL syntax.
- Stop doubling the ".js" on the sourceURL.
What is new in version 0.8.4:
- data-curl-run now only supports scripts, not modules.
What is new in version 0.8.2:
- Run compile.sh from anywhere.
- Restore quotes to cram text plugin output.
What is new in version 0.8.0:
- Paths can now be objects like packages and can have all of the same properties, except main, i.e. location (or path), config, name.
- Fixes an issue in node on windows wherein C: was seen as a web protocol.
- Updates READMEs in the plugin and loader folders.
- Drops dojo 1.6 compatibility in the "kitchen sink" distribution.
- Adds new dojo 1.8 distribution.
What is new in version 0.7.4:
- Cram.js support.
- data-curl-run attribute for loading run.js files.
- Fix to stop IE6-8 complaining about sourceURL when @cc_on.
- New debug dist version of curl.js.
- Bug fixes for running curl.js inside node.js.
What is new in version 0.7.3:
- New curl.config() API method.
- curl(config) and curl.config() can be called repeatedly.
- New "main" {String|Array} config option to init loading of main modules for an application.
What is new in version 0.7.2:
- css! plugin now works everywhere (closed an Opera-XDomain issue).
- css! plugin now returns the stylesheet created (as it used to, but for all browsers).
- curl() error handler is called even if no success handler is specified.
What is new in version 0.6.7:
- Fixed problems using google closure compiler to create "dist" versions.
What is new in version 0.6.6:
- Fix for Safari 6's strict treatment of string properties in un-compiled files.
Requirements:
- JavaScript enabled on client side
Comments not found