<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WKPreferences/inactiveSchedulingPolicy-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WKPreferences(py)inactiveSchedulingPolicy"
  },
  "title" : "inactiveSchedulingPolicy"
}
-->

# inactiveSchedulingPolicy

A policy you set to specify how a web view that’s not in a window handles tasks.

```
var inactiveSchedulingPolicy: WKPreferences.InactiveSchedulingPolicy { get set }
```

## Discussion

Set this to indicate how a web view that’s not in a window handles tasks; for example, when the web view is in a background tab in a browser. The default value is [`WKPreferences.InactiveSchedulingPolicy.suspend`](/documentation/WebKit/WKPreferences/InactiveSchedulingPolicy-swift.enum/suspend).

A web view that’s not in a window is exempted from this policy if it is playing media, performing media capture, or performing another user-interactive activity.

---

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)