<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebFrame/load(_:)-47p2s",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WebFrame(im)loadRequest:"
  },
  "title" : "load(_:)"
}
-->

# load(_:)

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

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

## Parameters

`request`

A client request.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)