<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebView-swift.class/shouldUpdateWhileOffscreen",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WebView(py)shouldUpdateWhileOffscreen"
  },
  "title" : "shouldUpdateWhileOffscreen"
}
-->

# shouldUpdateWhileOffscreen

A Boolean that inidicates whether the web view should update even when it is not in a window that is currently visible.

```
var shouldUpdateWhileOffscreen: Bool { get set }
```

## Discussion

If <doc://com.apple.documentation/documentation/Swift/true>, the web view updates regardless if it is visible. If <doc://com.apple.documentation/documentation/Swift/false>, it updates only if it is visible, possibly improving performance, and then updates automatically when it becomes visible. The default value is <doc://com.apple.documentation/documentation/Swift/true>.

---

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)