Handles loading a resource DOM element and listening for when it's
finished or failed to load.
This is designed to handle race conditions whereby a resource
added but not yet fully loaded. Event handlers can be registered
even after a resource has loaded with event handlers being fired.
Handles loading a resource DOM element and listening for when it's finished or failed to load.
This is designed to handle race conditions whereby a resource added but not yet fully loaded. Event handlers can be registered even after a resource has loaded with event handlers being fired.