How to use RequireJS with jQuery
How to use RequireJS with jQuery
- Introduction
- Global Functions
- Module Name
- Example using shim config
- Example loading jquery from a CDN
- Mapping Modules to use noConflict
- The previous example with a concatenated require-jquery file
Introduction
While RequireJS loads jQuery just like any other dependency, jQuery's wide use and extensive plugin ecosystem mean you'll likely have other scripts in your project that also depend on jQuery. You might approach your jQuery RequireJS configuration differently depending on whether you are starting a new project or whether you ar