Document custom external scripts with loading strategies#4971
Closed
mintlify[bot] wants to merge 1 commit intomainfrom
Closed
Document custom external scripts with loading strategies#4971mintlify[bot] wants to merge 1 commit intomainfrom
mintlify[bot] wants to merge 1 commit intomainfrom
Conversation
Generated-By: mintlify-agent
Contributor
Author
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
Collaborator
|
Closing as duplicate of #4981. That PR is more recent and covers the same customScripts documentation. The most comprehensive version will be reviewed separately. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
integrations.customScriptsconfiguration option, which allows loading third-party scripts from external URLs with configurable loading strategiesbeforeInteractiveloading strategy alongside the existingafterInteractiveandlazyOnloadoptionscustomScriptsproperties to the settings reference tableThe
customScriptsfeature lets users load external scripts (e.g., analytics, consent managers, chat widgets) viadocs.jsonand control when they execute relative to page load using astrategyoption.Note
Low Risk
Low risk documentation-only change; no runtime behavior or security logic is modified.
Overview
Adds documentation for loading external third-party scripts via
integrations.customScriptsindocs.json, including examples and constraints (HTTPS-only, max 20 scripts, disallowed file types).Updates the
docs.jsonschema reference to includecustomScriptsentries and the supported loadstrategyvalues (beforeInteractive,afterInteractive,lazyOnload).Written by Cursor Bugbot for commit fa96e5a. This will update automatically on new commits. Configure here.