Function gateTag
-
gateTag(
options: {
held?: readonly string[];
integrity?: string;
lease?: number;
src: string;
worker?: "always" | "auto" | "never";
},
source: string,
): stringParameters
- options: {
held?: readonly string[];
integrity?: string;
lease?: number;
src: string;
worker?: "always" | "auto" | "never";
}-
Optionalheld?: readonly string[] -
Optionalintegrity?: string -
Optionallease?: numberthe worker script's lease in seconds; the gate counts views inside one lease period
-
src: string
-
Optionalworker?: "always" | "auto" | "never"
-
- source: string
Returns string
- options: {
the inline gate in place of
clientTag:sourceis the built gate script, and the attributes name the client it loads, with its integrity and worker mode.heldlists 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.