Create configuration object for Package
Parameters:
Name |
Type |
Description |
params |
Object
|
Object with configuration
Properties
Name |
Type |
Description |
async |
Boolean
|
Asynchronous loading of package or not |
lazy |
Boolean
|
Lazy loading of package (waiting for window loads) |
depend |
Array
|
Array of Package's names which need to load before load this |
scriptTypeAttr |
String
|
This value write in script tag in type attribute |
linkCssTypeAttr |
String
|
This value write in link tag in type attribute |
linkCssRelAttr |
String
|
This value write in link tag in rel attribute |
|
- Source:
Returns:
-
Type
-
AJL.PackageConfig
Example
new AJL.PackageConfig({
async: false,
lazy: true,
depend: ['Package One Name', 'Package Two Name']
});