webview:preload

Client

Fired when a webview begins loading a new page, before it finishes


Signal

"webview:preload"

Arguments

TypeNameDescription
userdatawebviewThe webview instance triggering the event
stringurlThe URL being loaded

Fires at the start of a page load, before the page is ready.

  • Kit JS modules are injected into the page at this point.
  • Use this to perform setup before the page content is available.

Example

Detect webview page start
util.event.on("webview:preload", function(webview, url)
    core.engine.print("info", "Webview loading:", url)
end)

On this page