Compartir a través de


oncached event

Event handler provided to see if the resources have been loaded into the cache.

 

Syntax

HTML Attribute <element oncached = "handler(event)">
Event Property object.oncached = handler;
addEventListener Method object.addEventListener("cached", handler, useCapture)

 

Event handler parameters

  • handler [in]
    Type: Function

    Event handler

Remarks

If there is more than one event, the cached event will be the last one in the sequence.

Alternatively, you could use an anonymous delegate function such as

object.oncached = function (e) { … }

where e is the cached event.