---
title: "load(_:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/webframe/load(_:)-47p2s"
---

# load(_:)

Connects to a given URL by initiating an asynchronous client request.

## Declaration

```swift
func load(_ request: URLRequest!)
```

## Parameters

- `request`: A client request.

## Discussion

Discussion Creates a provisional data source that will transition to a committed data source once any data has been received. Use the dataSource method to check if a committed data source is available, and the stopLoading() method to stop the load. This method is typically invoked on the main frame.

## See Also

### Loading Content

- [reload()](webkit/webframe/reload().md)
- [reloadFromOrigin()](webkit/webframe/reloadfromorigin().md)
- [stopLoading()](webkit/webframe/stoploading().md)
- [loadAlternateHTMLString(_:baseURL:forUnreachableURL:)](webkit/webframe/loadalternatehtmlstring(_:baseurl:forunreachableurl:).md)
- [loadHTMLString(_:baseURL:)](webkit/webframe/loadhtmlstring(_:baseurl:).md)
- [load(_:mimeType:textEncodingName:baseURL:)](webkit/webframe/load(_:mimetype:textencodingname:baseurl:).md)
- [load(_:)](webkit/webframe/load(_:)-6wkx6.md)
