---
title: WKUserScriptInjectionTime.atDocumentStart
framework: webkit
role: symbol
role_heading: Case
path: webkit/wkuserscriptinjectiontime/atdocumentstart
---

# WKUserScriptInjectionTime.atDocumentStart

A constant to inject the script after the creation of the webpage’s document element, but before loading any other content.

## Declaration

```swift
case atDocumentStart
```

## See Also

### Script-Injection Times

- [WKUserScriptInjectionTime.atDocumentEnd](webkit/wkuserscriptinjectiontime/atdocumentend.md)
