Compute Pressure
Reports how busy the device CPU is in four coarse levels.
In one line
Can tell roughly how busy your device is, only while the page is in view
Reports how busy the device CPU is in four coarse levels.
Gives nominal, fair, serious, critical CPU pressure states. Lets video-call sites adapt, but also leaks activity on the machine.
What it can and can't do
What the user does: Nothing. A video call or heavy page may start it while you use the tab
It can
- Check four coarse busy levels: nominal, fair, serious, critical
- Slow down video or effects when your device is struggling
- Get updates about once a second while the tab is visible
It cannot
- Measure exact heat, fan speed, or power use
- Run in Firefox, Safari, or on iPhone
- Keep checking when the tab is hidden or out of focus
- Run if the site or its iframe is blocked by Permissions Policy
How it differs between platforms: Works in Chrome and Edge only. Firefox and Safari do not offer it.
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 125 | 2024-05-14 | None |
| Edge | Supported | 125 | 2024-05-17 | None |
| Firefox | Not supported | Not available | Not listed | None |
| Safari | Not supported | Not available | Not listed | None |
| Safari on iPhone | Not supported | Not available | Not listed | None |
| Chrome on Android | Not supported | Not available | Not listed | None |
| Samsung Internet | Not supported | Not available | Not listed | None |
How a site asks for it
| API | new PressureObserver(callback).observe('cpu', {sampleInterval}); permission compute-pressure |
| Permission name | compute-pressure |
| Permissions policy | compute-pressure |
| Browser compat keys | api.PressureObserver |
| How access is granted | none |
| What the user sees | No prompt in current Chrome; blocked by Permissions Policy and requires a focused, visible page. |
| Needs a secure context (HTTPS) | Yes |
| Needs a user gesture | No |
| How long it lasts | While observing |
| How to take it back | Disconnect observer |
| Inside an iframe | Needs allow="compute-pressure" |
Typical flow
- Create PressureObserver
- observe('cpu')
- Receive PressureRecord updates
Data you get
What comes back: PressureRecord with state
Shape: event
How often: at sampleInterval (min 1000 ms)
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
state | enum | none | nominal, fair, serious, critical | 2 bits |
Technical limits
- Chromium desktop only
- Only coarse buckets
The story
What it is
Tells a page how busy your computer's processor is, as nominal, fair, serious or critical.
For you
You never see it. On a good day your video call just stays smooth because the app quietly turned down the fancy background blur when your laptop got hot. On a bad day, others on the call may notice lower quality.
For makers
Heavy web apps want to use all the power they can without freezing the machine. Compute Pressure gives them an early warning so they can drop quality, not crash. It also tells them when a machine is busy with other work.
Where you see it
| Type | Example | Apps |
|---|---|---|
| video | A video call app turns off background blur and lowers resolution when the processor says serious, so the call does not stutter. | Google Meet, Zoom |
| games | A WebGL game lowers shadows and crowd size when pressure hits critical, so frame rate stays steady on a laptop. | None named |
| games | A cloud gaming page keeps the video decoder healthy by pausing extra overlays while the processor is overloaded. | Xbox Cloud Gaming, GeForce NOW |
| creative | A browser design tool such as Figma lowers live preview quality while you drag a huge file so the cursor stays smooth. | Figma |
| live | A browser-based streaming studio switches to a lighter video encode when the CPU is stressed, to avoid dropped frames. | None named |
| productivity | An online video editor uses fewer background threads for thumbnails while you are exporting a clip. | Clipchamp |
| security | A tracking script might read pressure to guess whether you are running other heavy tasks. | None named |
Risks
- Leaks what else your machine is doing
- Rarely seen, so people are unaware
What the platform says
- Google: Compute Pressure API. Chrome describes it as a way for sites to notice when the device is under strain and adapt before things stutter.
- MDN: Compute Pressure API. Mozilla's docs explain how pages observe coarse CPU pressure states.
Good uses and abuse
Legitimate uses
- Video calls
- Games
Known abuse
- Side channel about local activity
Scores
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 2 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 2 | Rough identifying entropy, when known |
History
- 2024-05, Chrome 125: Compute Pressure API ships
Related capabilities
Related
- Permissions Policy and iframe allow. Can turn features off for itself and its embedded frames
Sources
How well checked: Based on official documentation.