---
title: hasBackgroundContent
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/wkwebextension/hasbackgroundcontent
---

# hasBackgroundContent

A Boolean value indicating whether the extension has background content that can run when needed.

## Declaration

```swift
var hasBackgroundContent: Bool { get }
```

## Discussion

Discussion If this property is YES, the extension can run in the background even when no webpages are open.
