v150 · Performance

Speculation Inspector

Press the button to call the real performance.getSpeculations() and inspect the object it returns — the page's preconnects, preloads, navigations, and navigationDestinationURL. This page ships two real preload links, so an enabled implementation has something to report.

To get a live result, this API is available only through an experiment today. Launch Chrome with --enable-blink-features=SpeculationMeasurement (or the catch-all --enable-experimental-web-platform-features), or join the SpeculationMeasurement origin trial. If the method is absent the demo says so and shows the documented shape clearly labelled as reference — never as a live read.
performance.getSpeculations: checking…

Live result

Press the button to read this page's speculations.

Documented return shape

reference — not a live result

  
// One call returns everything the page speculatively loaded:
const s = performance.getSpeculations();

s.preconnects;   // [{ origin, crossorigin, earlyhint }]
s.preloads;      // [{ url, as, crossorigin, earlyhint, used }]  used = timestamp | null
s.navigations;   // [{ type, url, tags, eagerness }]  type: prefetch | prerender | prerender-until-script
s.navigationDestinationURL;  // same-origin destination when exposed, else null (exposure shape is provisional in the explainer)

see also

implementation reference

Need the exact API surface, compatibility boundaries, errors, lifecycle, and source links? Read the matching gendn reference ↗