Enumeration

WKUserScriptInjectionTime

The time when a user script should be injected into a webpage.

Declaration

enum WKUserScriptInjectionTime : Int

Topics

Constants

case atDocumentStart

Inject the script after the document element is created, but before any other content is loaded.

case atDocumentEnd

Inject the script after the document finishes loading, but before other subresources finish loading.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software