Class that loads and unloads dependencies in an application.
Kind: global class
- Loader
- instance
- static
- .supportsHTML5Imports() ⇒
boolean
- .supportsHTML5Imports() ⇒
Checks if a web application file (js/css/html) is already loaded.
Kind: instance method of Loader
Returns: boolean
- True if file loaded. False if not.
Since: 0.0.1
Param | Type | Description |
---|---|---|
url | string |
URL of file. |
Loads a file (JS/CSS/HTML).
Kind: instance method of Loader
Since: 0.0.1
Param | Type | Description |
---|---|---|
url | string |
URL of file. |
callback | function |
Function returned with a number value (status). |
Unloads a file (CSS/HTML).
Kind: instance method of Loader
Since: 0.0.1
Param | Type | Description |
---|---|---|
url | string |
URL of file. |
callback | function |
Function returned with a status value. |
Check if a browser interpreter has supported HTML5 imports.
Kind: static method of Loader
Returns: boolean
- True -> Browser accepts HTML5 imports. False -> Browser can't use imports.
Since: 0.0.1