Sensors & Location

Compute Pressure

Probing…

Compute Pressure is a web platform capability in the Sensors & Location category. Observe CPU pressure to adapt workloads. Supported in Chromium 125+; not available in Firefox and Safari. Requires a secure context (HTTPS or localhost).

Secure context

Try it

Loading demo…

Code

const observer = new PressureObserver(records => {
  const latest = records.at(-1)
  console.log(latest.state) // 'nominal' | 'fair' | 'serious' | 'critical'
})
await observer.observe('cpu', { sampleInterval: 1000 })
// later: observer.disconnect()

Browser support

Chromium
125
Firefox
No
Safari
No

Frequently asked questions

Which browsers support Compute Pressure?

Supported in Chromium 125+; not available in Firefox and Safari.

Does Compute Pressure require HTTPS?

Yes. Compute Pressure needs a secure context, so it only works over HTTPS (or on localhost during development).

What is Compute Pressure used for?

Observe CPU pressure to adapt workloads.

Can I try Compute Pressure in my browser?

Yes. shwcs.net runs a live Compute Pressure demo that probes your current browser and lets you try the API. Everything runs locally — nothing is sent anywhere.

MDN reference ↗ Specification ↗