Start to capture error events of resources loaded by link, script and img elements, and replace error elements with fallback elements. The error element will dispatch a pre-url-fallback event before and a post-url-fallback event after fallback element generated.
Set url fallback rules.
The function to remove the error event listener.
Get a list of matched substrings and their fallbacks based on one specific url and rules.
The url of error resource.
The config passed to addErrorListener.
The list of matched substrings and their fallbacks.
Get url fallback hander that replacing elements with fallback elements.
Set url fallback rules.
urlFallbackHandler and fallbackDataRecord
Generated using TypeDoc
A fallback element is an ordinary HTMLElement instance with some custom properties that makes it a Doubly Linked List with extra data.