<!--
{
  "availability" : [
    "macOS: 10.6.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebPlugInShouldLoadMainResourceKey",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:@WebPlugInShouldLoadMainResourceKey"
  },
  "title" : "WebPlugInShouldLoadMainResourceKey"
}
-->

# WebPlugInShouldLoadMainResourceKey

A Boolean value indicating whether the plug-in should load its own main resource (the `src` URL, in most cases).

```
let WebPlugInShouldLoadMainResourceKey: String
```

## Discussion

If <doc://com.apple.documentation/documentation/Swift/true>, the plug-in should load its own main resource. If <doc://com.apple.documentation/documentation/Swift/false>, the plug-in uses the data provided by WebKit and the `webPlugInMainResourceDidReceiveData:` message is sent to the plug-in when data is received. The default value is <doc://com.apple.documentation/documentation/Swift/false>.

---

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)