Skip to content

Latest commit

 

History

History
72 lines (49 loc) · 1.84 KB

File metadata and controls

72 lines (49 loc) · 1.84 KB

Loader

Class that loads and unloads dependencies in an application.

Kind: global class

loader.isLoaded(url) ⇒ boolean

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.

loader.load(url, callback)

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).

loader.unload(url, callback)

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.

Loader.supportsHTML5Imports() ⇒ boolean

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