TagRequest Class
An AbstractRequest that loads HTML tags, such as images and scripts.
Item Index
Properties
Methods
_clean
()
private
Remove event listeners, but don't destroy the request object
_handleError
()
protected
Handle any error events from the tag.
_handleError
(
private
-
event
The tag request has not loaded within the time specified in loadTimeout.
Parameters:
-
event
ObjectThe XHR error event.
_handleReadyStateChange
()
private
Handle the readyStateChange event from a tag. We need this in place of the onload
callback (mainly SCRIPT
and LINK tags), but other cases may exist.
_handleStalled
()
private
Handle a stalled audio event. The main place this happens is with HTMLAudio in Chrome when playing back audio that is already in a load, but not complete.
_handleTagComplete
()
private
Handle the tag's onload callback.