static void |
ResourceLoader.addOnloadHandler(elemental.dom.Element element,
ResourceLoader.ResourceLoadListener listener,
ResourceLoader.ResourceLoadEvent event) |
Adds an onload listener to the given element, which should be a link or a
script tag.
|
void |
ResourceLoader.inlineHtml(String htmlContents,
ResourceLoader.ResourceLoadListener resourceLoadListener) |
Inlines an HTML import and notify a listener when the HTML import is
loaded.
|
void |
ResourceLoader.inlineScript(String scriptContents,
ResourceLoader.ResourceLoadListener resourceLoadListener) |
Inlines a script and notify a listener when the script is loaded.
|
void |
ResourceLoader.inlineStyleSheet(String styleSheetContents,
ResourceLoader.ResourceLoadListener resourceLoadListener) |
Inlines a stylesheet and notify a listener when the stylesheet is loaded.
|
void |
ResourceLoader.loadDynamicImport(String expression,
ResourceLoader.ResourceLoadListener resourceLoadListener) |
Loads a dynamic import via the provided JS expression and reports
the result via the resourceLoadListener.
|
void |
ResourceLoader.loadHtml(String htmlUrl,
ResourceLoader.ResourceLoadListener resourceLoadListener,
boolean async) |
Loads an HTML import and notify a listener when the HTML import is
loaded.
|
void |
ResourceLoader.loadJsModule(String scriptUrl,
ResourceLoader.ResourceLoadListener resourceLoadListener,
boolean async,
boolean defer) |
Load a script with type module and notify a listener when the script is
loaded.
|
void |
ResourceLoader.loadScript(String scriptUrl,
ResourceLoader.ResourceLoadListener resourceLoadListener) |
Load a script and notify a listener when the script is loaded.
|
void |
ResourceLoader.loadScript(String scriptUrl,
ResourceLoader.ResourceLoadListener resourceLoadListener,
boolean async,
boolean defer) |
Load a script and notify a listener when the script is loaded.
|
void |
ResourceLoader.loadStylesheet(String stylesheetUrl,
ResourceLoader.ResourceLoadListener resourceLoadListener) |
Load a stylesheet and notify a listener when the stylesheet is loaded.
|