Skip to content

AWAF/loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

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

About

Content loader for AWAF, using ajax module.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published