Examples
- Same Domain:
- Pulls from the local domain using XMLHttpRequest
- Alternate Domain:
- Pulls from the remote domain using iFrame Transports
- Alternate Domain Complex:
- Pulls from the remote domain using iFrame Transports more complex with multiple dependencies
- Pointcuts:
- Items that haven't been properly externalized can still be captured.
- AMD:
- The Asynchronous Module Definition (AMD) API specifies a mechanism for defining modules such that the module and its dependencies can be asynchronously loaded.
- addRule():
- how to use the addRule() syntax to support supplemental libraries such as jQuery UI
- Inline AMD Module:
- Use a named AMD module as a way to package server-side generated JS code or as a way to override "require" statements that you don't want to make calls to your server.
- Nesting AMD Module:
- Building upon inlining AMD modules, you can use this same technique to pre-shim your non AMD code. This is a pure AMD based alternative to Inject's rule syntax.
- Catching syntax errors:
- With the debug mode on, you can get deep inside your code and find where the errors are across
Chrome, Firefox, and IE.
- Using Plugins with Inject:
- You have full control of the files thanks to XHR+Eval. This allows for the creation of highly extensible plugins.
- AMD Plugin Support:
- If you absolutely need that one little AMD plugin and it's not a standard Inject Plugin, we've got you covered there too.
- Concatenation:
- Deliver a bunch of modules simultaneously using AMD syntax, and mix it up with require.ensure. A great example for large scale websites that need to concat files for performance reasons.