This class handles loading of external stylesheets and fires events when these are loaded.
| Name | Summary | Defined by |
|---|---|---|
Loads the specified CSS file and returns a Promise that will resolve when the stylesheet is loaded successfully or reject if it failed to load. |
||
Loads the specified CSS files and returns a Promise that is resolved when all stylesheets are loaded or rejected if any failed to load. |
||
Loads the specified css string in as a style element with an unique key. |
||
Unloads the specified CSS file if no resources currently depend on it. |
||
Unloads each specified CSS file if no resources currently depend on it. |
||
Unloads the specified CSS style element by key. |
load(url: String): PromiseLoads the specified CSS file and returns a Promise that will resolve when the stylesheet is loaded successfully or reject if it failed to load.
loadAll(urls: Array): PromiseLoads the specified CSS files and returns a Promise that is resolved when all stylesheets are loaded or rejected if any failed to load.
loadRawCss(key: String, css: String)Loads the specified css string in as a style element with an unique key.
unload(url: String)Unloads the specified CSS file if no resources currently depend on it.
unloadAll(urls: Array)Unloads each specified CSS file if no resources currently depend on it.