The Oracle JET framework includes RequireJS, a third-party JavaScript library that you can use in your application to load only the Oracle JET libraries you need. Using RequireJS, you can also implement lazy loading of modules or create JavaScript partitions that contain more than one module.
The asynchronous module loading and dependency management can be handled by RequireJS as it implements the Asynchronous Module Definition (AMD) API.
Note
AMD is a specification for the programming language JavaScript. It defines an application programming interface (API) that defines code modules and their dependencies, and loads them asynchronously if desired.
To set up RequireJS for managing application libraries, links, and script references in your Oracle JET application, you can perform the following steps:
- Download RequireJS from its home page: http://requirejs.org/docs/download.html.
- Include RequireJS in your application home page as follows:
<html> ...