Function ul_sys::ulViewSetWindowObjectReadyCallback[][src]

pub unsafe extern "C" fn ulViewSetWindowObjectReadyCallback(
    view: ULView,
    callback: ULWindowObjectReadyCallback,
    user_data: *mut c_void
)
Expand description

Set callback for when the JavaScript window object is reset for a new page load.

This is called before any scripts are executed on the page and is the earliest time to setup any initial JavaScript state or bindings.

The document is not guaranteed to be loaded/parsed at this point. If you need to make any JavaScript calls that are dependent on DOM elements or scripts on the page, use DOMReady instead.

The window object is lazily initialized (this will not be called on pages with no scripts).