---
title: "load(simulatedRequest:response:responseData:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/webpage/load(simulatedrequest:response:responsedata:)"
---

# load(simulatedRequest:response:responseData:)

Loads the web content from the data you provide as if the data were the response to the request.

## Declaration

```swift
@discardableResult @MainActor final func load(simulatedRequest request: URLRequest, response: URLResponse, responseData: Data) -> some AsyncSequence<WebPage.NavigationEvent, any Error>

```

## Parameters

- `request`: A URL request that specifies the base URL and other loading details the system uses to interpret the data you provide.
- `response`: A response the system uses to interpret the data you provide.
- `responseData`: The data to use as the contents of the webpage.

## Return Value

Return Value An async sequence you use to track the loading progress of the navigation. If the Task enclosing the sequence is cancelled, the page will stop loading all resources.

## See Also

### Loading web content

- [load(_:)](webkit/webpage/load(_:)-32ngj.md)
- [load(_:)](webkit/webpage/load(_:)-7kw3h.md)
- [load(_:)](webkit/webpage/load(_:)-8wfiq.md)
- [load(_:mimeType:characterEncoding:baseURL:)](webkit/webpage/load(_:mimetype:characterencoding:baseurl:).md)
- [load(html:baseURL:)](webkit/webpage/load(html:baseurl:).md)
- [load(simulatedRequest:responseHTML:)](webkit/webpage/load(simulatedrequest:responsehtml:).md)
- [isLoading](webkit/webpage/isloading.md)
- [estimatedProgress](webkit/webpage/estimatedprogress.md)
