The HTML Element to use for temporary image loading, when necessary.
Object.defineProperty(ImageLoader.prototype, 'imagesHolder',
get: function(),
set: function(value)
)
imagesHolder: HTMLElement;
The HTML Element to use for temporary image loading. Default value is null.
When loading an SVG-as-IMG (meaning and SVG as an HTML Image Element), the width and height of the image may not be immediately available. In this case, the loaded image is appended to the DOM as a child of ImagesHolder. When Done is fired, Width and Height will be available as always. One ImagesHolder can be used for many ImageLoader instances.
When all Done event callbacks have been run, the Element may be removed from the ImagesHolder if it still exists there. This should be of no concern to the application, as the Element is removed from the ImagesHolder automatically when it is appended somewhere else.
It is recommended to use an ImagesHolder element has styles applied making it invisible to the page:
.my-app-images-holder {
visibility: hidden;
}