@yesstudio/nuxt-composables
    Preparing search index...

    Interface ScriptWithoutEvents

    From T, pick a set of properties whose keys are in the union K

    interface ScriptWithoutEvents {
        async?: Booleanable;
        blocking?: string;
        crossorigin?: "" | "anonymous" | "use-credentials";
        "custom-element"?:
            | string & Record<never, never>
            | "amp-story"
            | "amp-carousel"
            | "amp-ad";
        defer?: Booleanable;
        fetchpriority?: "auto" | "high" | "low";
        id?: string;
        integrity?: string;
        nomodule?: Booleanable;
        nonce?: string;
        referrerpolicy?: ReferrerPolicy;
        src?: string;
        type?:
            | ""
            | "module"
            | string & Record<never, never>
            | "text/javascript"
            | "application/json"
            | "application/ld+json"
            | "speculationrules";
    }

    Hierarchy (View Summary)

    Index

    Properties

    async?: Booleanable

    For 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.

    blocking?: string

    The 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.

    blocking: "render"
    
    crossorigin?: "" | "anonymous" | "use-credentials"

    Normal 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.

    "custom-element"?:
        | string & Record<never, never>
        | "amp-story"
        | "amp-carousel"
        | "amp-ad"

    A custom element name

    Used by the AMP specification.

    defer?: Booleanable

    This 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.

    fetchpriority?: "auto" | "high" | "low"

    Provides a hint of the relative priority to use when fetching an external script.

    id?: string

    The id global attribute defines a unique identifier (ID) which must be unique in the whole document.

    integrity?: string

    This attribute contains inline metadata that a user agent can use to verify that a fetched resource has been delivered free of unexpected manipulation.

    nomodule?: Booleanable

    This 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.

    nonce?: string

    A 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.

    referrerpolicy?: ReferrerPolicy

    Indicates which referrer to send when fetching the script, or resources fetched by the script.

    src?: string

    This attribute specifies the URI of an external script; this can be used as an alternative to embedding a script directly within a document.

    type?:
        | ""
        | "module"
        | string & Record<never, never>
        | "text/javascript"
        | "application/json"
        | "application/ld+json"
        | "speculationrules"

    This attribute indicates the type of script represented.