Skip to content

Repository files navigation

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

ParamTypeDescription
urlstringURL of file.

loader.load(url, callback)

Loads a file (JS/CSS/HTML).

Kind: instance method of Loader
Since: 0.0.1

ParamTypeDescription
urlstringURL of file.
callbackfunctionFunction returned with a number value (status).

loader.unload(url, callback)

Unloads a file (CSS/HTML).

Kind: instance method of Loader
Since: 0.0.1

ParamTypeDescription
urlstringURL of file.
callbackfunctionFunction 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

About

Content loader for AWAF, using ajax module.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages