Crestron Components Lib - Showcase App

ch5-import-htmlsnippet: afterload

afterload event

The afterload event occurs when a HTML snippet has been loaded and inserted into the DOM. Afterload is most often used within the ch5-import-htmlsnippet element to execute a script once an HTML snippet has completely loaded all content (including images, script files, CSS files, and so forth).

<ch5-import-htmlsnippet
    url="ch5-import-htmlsnippet/ch5-import-htmlsnippet-content.html">
</ch5-import-htmlsnippet>
<div id="afterLoad" style="color:#008a00;font-weight:bold;text-align:center;"></div>