onloaded event

onloaded event

Applies to Windows and Windows Phone

Occurs after the DOMContentLoaded event, which fires after the page has been parsed but before all the resources are loaded. This event occurs before the activated event and the ready event.

Syntax


WinJS.Application.addEventListener("loaded", listenerName);
or
WinJS.Application.onloaded = listenerName;


Event information

SynchronousNo
BubblesYes
CancelableYes

 

Event handler parameters

eventInfo

Type: CustomEvent

An object that contains information about the event. The detail property of this object includes the following subproperties:

  • type: "loaded"
  • setPromise:The Promise indicates that the event listener has pending asynchronous work. When the Promise is completed, the next handler is dispatched.

Remarks

For more information about the application lifecycle, see Managing the application lifecycle.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.Application

 

 

Show:
© 2016 Microsoft