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

# NSWebResourceLoadDelegateDocumentOption

An object to serve as the web resource loading delegate.

```
extern NSAttributedStringDocumentReadingOptionKey NSWebResourceLoadDelegateDocumentOption;
```

## Discussion

For HTML only. The value is an <doc://com.apple.documentation/documentation/ObjectiveC/NSObject-swift.class>.

If not present, a default delegate is used that permits the loading of subsidiary resources but does not respond to authentication challenges. The previous string constant was `@"WebResourceLoadDelegate"`.

---

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)