Skip to content
@drupflare/spool v1.0.0 GitHub
    Preparing search index...

    Function gateTag

    • the inline gate in place of clientTag: source is the built gate script, and the attributes name the client it loads, with its integrity and worker mode. held lists the paths a click may load the boot script for: a prefix such as /courses/ for a page with no query string, or ? and a path for a list that answers a query string.

      Parameters

      • options: {
            held?: readonly string[];
            integrity?: string;
            lease?: number;
            src: string;
            worker?: "always" | "auto" | "never";
        }
        • Optionalheld?: readonly string[]
        • Optionalintegrity?: string
        • Optionallease?: number

          the worker script's lease in seconds; the gate counts views inside one lease period

        • src: string
        • Optionalworker?: "always" | "auto" | "never"
      • source: string

      Returns string