---
title: "reload(fromOrigin:for:completionHandler:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/wkwebextensiontab/reload(fromorigin:for:completionhandler:)"
---

# reload(fromOrigin:for:completionHandler:)

Called to reload the current page in the tab.

## Declaration

```swift
optional func reload(fromOrigin: Bool, for context: WKWebExtensionContext, completionHandler: @escaping ((any Error)?) -> Void)
```

```swift
optional func reload(fromOrigin: Bool, for context: WKWebExtensionContext) async throws
```

## Parameters

- `fromOrigin`: A boolean value indicating whether to reload the tab from the origin, bypassing the cache.
- `context`: The context in which the web extension is running.
- `completionHandler`: A block that must be called upon completion. It takes a single error argument, which should be provided if any errors occurred.

## Discussion

Discussion Reloads the tab’s web view via reload() or reloadFromOrigin() if not implemented.
