---
title: WebPlugInShouldLoadMainResourceKey
framework: WebKit
role: symbol
role_heading: Global Variable
platforms: [macOS 10.6+]
path: webkit/webpluginshouldloadmainresourcekey
---

# WebPlugInShouldLoadMainResourceKey

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

## Declaration

```swift
let WebPlugInShouldLoadMainResourceKey: String
```

## Discussion

Discussion If true, the plug-in should load its own main resource. If 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 false.

## See Also

### WebKit Constants (Legacy)

- [WebActionButtonKey](webkit/webactionbuttonkey.md)
- [WebActionElementKey](webkit/webactionelementkey.md)
- [WebActionModifierFlagsKey](webkit/webactionmodifierflagskey.md)
- [WebActionNavigationTypeKey](webkit/webactionnavigationtypekey.md)
- [WebActionOriginalURLKey](webkit/webactionoriginalurlkey.md)
- [WebArchivePboardType](webkit/webarchivepboardtype.md)
- [WebElementDOMNodeKey](webkit/webelementdomnodekey.md)
- [WebElementFrameKey](webkit/webelementframekey.md)
- [WebElementImageAltStringKey](webkit/webelementimagealtstringkey.md)
- [WebElementImageKey](webkit/webelementimagekey.md)
- [WebElementImageRectKey](webkit/webelementimagerectkey.md)
- [WebElementImageURLKey](webkit/webelementimageurlkey.md)
- [WebElementIsSelectedKey](webkit/webelementisselectedkey.md)
- [WebElementLinkLabelKey](webkit/webelementlinklabelkey.md)
- [WebElementLinkTargetFrameKey](webkit/webelementlinktargetframekey.md)
