Type Alias ViewEvent
crossOriginLoads: number | null;
engine: Engine;
from?: string;
gapMs: number | null;
id: string;
lifetimes?: number;
mismatch: boolean | null;
reason: ViewReason;
route: string;
scope: Scope;
staleSec: number | null;
strategy: Strategy;
swAgeMs: number;
tier: ViewTier;
}
Properties
cross Origin Loads
Cross-origin resources the page loaded during the view, as the page runtime counted them from
PerformanceResourceTiming when it was hidden. Without Timing-Allow-Origin such an entry has a
transfer size of 0 whether it came from cache or network, so a cache hit counts: this is an upper
bound on cross-origin network requests. Null until the page reports, and when it never does.
engine
Optionalfrom
Where the visitor came from: the referring page's route pattern when it is same-origin and
matches a declared route, external for a cross-origin referrer, omitted otherwise. Never a path.
gap Ms
milliseconds since this worker's previous view, or null for its first
id
names this view, so the page's later report of its cross-origin loads can be joined to it
Optionallifetimes
packs this client installed, as the page last reported; absent until the page reports
mismatch
whether the local render differed from the network one; null when no local render was made
reason
route
the matched route pattern
scope
stale Sec
seconds since the stored copy was last known good, or null when none was stored
strategy
sw Age Ms
milliseconds since this worker instance started
one page view on a declared route, as the worker reports it in
spool.view