CPU compute pressureLimited availability
The PressureObserver API monitors CPU load, allowing you to adjust workloads in response to available computing resources. Also known as the Compute Pressure API.
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
1–124Not supported
125+Supportedsince May 14, 2024
Current: 155Edge
12–124Not supported
125+Supportedsince May 17, 2024
Current: 154Firefox
✕Not supportedup to 157
Current: 157Safari
✕Not supportedup to 27
Current: 27MobileChrome Android
✕Not supportedup to 155
Current: 155Firefox Android
✕Not supportedup to 157
Current: 157Safari iOS
✕Not supportedup to 27
Current: 27How to use
Not supported in Firefox, Safari, Chrome Android, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: PressureObserver.
Feature detection
JS · check before using
if ("allow" in document.createElement("iframe")) {
// the allow attribute/property of <iframe> is supported
}Sub-features
Support for each part of the feature (14). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| PressureObserver | 125 | 125 | ✕ | ✕ | ✕ | ✕ | ✕ |
| PressureObserver.PressureObserver | 125 | 125 | ✕ | ✕ | ✕ | ✕ | ✕ |
| PressureObserver.disconnect | 125 | 125 | ✕ | ✕ | ✕ | ✕ | ✕ |
| PressureObserver.knownSources_static | 125 | 125 | ✕ | ✕ | ✕ | ✕ | ✕ |
| PressureObserver.observe | 125 | 125 | ✕ | ✕ | ✕ | ✕ | ✕ |
| PressureObserver.takeRecords | 125 | 125 | ✕ | ✕ | ✕ | ✕ | ✕ |
| PressureObserver.unobserve | 125 | 125 | ✕ | ✕ | ✕ | ✕ | ✕ |
| PressureRecord | 125 | 125 | ✕ | ✕ | ✕ | ✕ | ✕ |
| PressureRecord.source | 125 | 125 | ✕ | ✕ | ✕ | ✕ | ✕ |
| PressureRecord.state | 125 | 125 | ✕ | ✕ | ✕ | ✕ | ✕ |
| PressureRecord.time | 125 | 125 | ✕ | ✕ | ✕ | ✕ | ✕ |
| PressureRecord.toJSON | 125 | 125 | ✕ | ✕ | ✕ | ✕ | ✕ |
| iframe.allow.compute-pressure | 125 | 125 | ✕ | ✕ | ✕ | ✕ | ✕ |
| http.headers.Permissions-Policy.compute-pressure | 125 | 125 | ✕ | ✕ | ✕ | ✕ | ✕ |