OptionalasyncFor classic scripts, if the async attribute is present, then the classic script will be fetched in parallel to parsing and evaluated as soon as it is available.
For module scripts, if the async attribute is present then the scripts and all their dependencies will be executed in the defer queue, therefore they will get fetched in parallel to parsing and evaluated as soon as they are available.
OptionalblockingThe blocking attribute indicates that certain operations should be blocked on the fetching of an external resource. The value is an unordered set of unique space-separated tokens, each of which are possible blocking tokens.
OptionalcrossoriginNormal script elements pass minimal information to the window.onerror for scripts which do not pass the standard CORS checks. To allow error logging for sites which use a separate domain for static media, use this attribute.
Optionalcustom-A custom element name
Used by the AMP specification.
OptionaldeferThis Boolean attribute is set to indicate to a browser that the script is meant to be executed after the document has been parsed, but before firing DOMContentLoaded.
OptionalfetchpriorityProvides a hint of the relative priority to use when fetching an external script.
OptionalidThe id global attribute defines a unique identifier (ID) which must be unique in the whole document.
OptionalintegrityThis attribute contains inline metadata that a user agent can use to verify that a fetched resource has been delivered free of unexpected manipulation.
OptionalnomoduleThis Boolean attribute is set to indicate that the script should not be executed in browsers that support ES modules — in effect, this can be used to serve fallback scripts to older browsers that do not support modular JavaScript code.
OptionalnonceA cryptographic nonce ("number used once") which can be used by Content Security Policy to determine whether or not a given fetch will be allowed to proceed.
OptionalreferrerpolicyIndicates which referrer to send when fetching the script, or resources fetched by the script.
OptionalsrcThis attribute specifies the URI of an external script; this can be used as an alternative to embedding a script directly within a document.
OptionaltypeThis attribute indicates the type of script represented.
From T, pick a set of properties whose keys are in the union K