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§
- Disable
Params - Parameters of
Preload.disable. - Enable
Params - Parameters of
Preload.enable. - Prefetch
Status Updated Event - Fired when a prefetch attempt is updated.
- Preload
Enabled State Updated Event - Fired when a preload enabled state is updated.
- Preloading
Attempt Key - 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.
- Preloading
Attempt Source - 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.
- Preloading
Attempt Sources Updated Event - Send a list of sources for all preloading attempts in a document.
- Prerender
Mismatched Headers - Information of headers to be displayed when the header mismatch occurred.
- Prerender
Status Updated Event - Fired when a prerender attempt is updated.
- RuleSet
- Corresponds to SpeculationRuleSet
- Rule
SetRemoved Event - Payload of the
Preload.ruleSetRemovedevent. - Rule
SetUpdated Event - Upsert. Currently, it is only emitted when a rule set added.
Enums§
- Prefetch
Status - TODO(https://crbug.com/1384419): revisit the list of PrefetchStatus and filter out the ones that aren’t necessary to the developers.
- Preloading
Status - Preloading status values, see also PreloadingTriggeringOutcome. This status is shared by prefetchStatusUpdated and prerenderStatusUpdated.
- Prerender
Final Status - List of FinalStatus reasons for Prerender2.
- Rule
SetError Type - Speculation
Action - The type of preloading attempted. It corresponds to mojom::SpeculationAction (although PrefetchWithSubresources is omitted as it isn’t being used by clients).
- Speculation
Target Hint - Corresponds to mojom::SpeculationTargetHint. See https://github.com/WICG/nav-speculation/blob/main/triggers.md#window-name-targeting-hints
Type Aliases§
- Preload
Pipeline Id - 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. - Rule
SetId - Unique id