Skip to main content

Module preload

Module preload 

Source
Expand description

The Preload domain.

Types, command parameters and event payloads for the Preload domain. The method-name constants for the same domain are in crate::methods.

This domain is experimental and may change without notice.

Structs§

DisableParams
Parameters of Preload.disable.
EnableParams
Parameters of Preload.enable.
PrefetchStatusUpdatedEvent
Fired when a prefetch attempt is updated.
PreloadEnabledStateUpdatedEvent
Fired when a preload enabled state is updated.
PreloadingAttemptKey
A key that identifies a preloading attempt. The url used is the url specified by the trigger (i.e. the initial URL), and not the final url that is navigated to. For example, prerendering allows same-origin main frame navigations during the attempt, but the attempt is still keyed with the initial URL.
PreloadingAttemptSource
Lists sources for a preloading attempt, specifically the ids of rule sets that had a speculation rule that triggered the attempt, and the BackendNodeIds of <a href> or <area href> elements that triggered the attempt (in the case of attempts triggered by a document rule). It is possible for multiple rule sets and links to trigger a single attempt.
PreloadingAttemptSourcesUpdatedEvent
Send a list of sources for all preloading attempts in a document.
PrerenderMismatchedHeaders
Information of headers to be displayed when the header mismatch occurred.
PrerenderStatusUpdatedEvent
Fired when a prerender attempt is updated.
RuleSet
Corresponds to SpeculationRuleSet
RuleSetRemovedEvent
Payload of the Preload.ruleSetRemoved event.
RuleSetUpdatedEvent
Upsert. Currently, it is only emitted when a rule set added.

Enums§

PrefetchStatus
TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and filter out the ones that aren’t necessary to the developers.
PreloadingStatus
Preloading status values, see also PreloadingTriggeringOutcome. This status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
PrerenderFinalStatus
List of FinalStatus reasons for Prerender2.
RuleSetErrorType
SpeculationAction
The type of preloading attempted. It corresponds to mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it isn’t being used by clients).
SpeculationTargetHint
Corresponds to mojom::SpeculationTargetHint. See https://github.com/WICG/nav-speculation/blob/main/triggers.md#window-name-targeting-hints

Type Aliases§

PreloadPipelineId
Chrome manages different types of preloads together using a concept of preloading pipeline. For example, if a site uses a SpeculationRules for prerender, Chrome first starts a prefetch and then upgrades it to prerender. CDP events for them are emitted separately but they share PreloadPipelineId.
RuleSetId
Unique id