The @w3c Compute Pressure #API specification defines a set of pressure states (e.g. high CPU load) delivered to a #WebApp to signal when adaptation of the workload is appropriate to ensure consistent quality of service. #timetoimplement
▶️ https://www.w3.org/TR/compute-pressure/

The document defines 3 concepts: processing units (such as the CPU), supported sources (such as #GPU), sampling and reporting rates.

Key usage scenarios are described in this explainer: https://github.com/w3c/compute-pressure#readme

Compute Pressure Level 1

The Compute Pressure API provides a way for websites to react to changes in the CPU pressure of the target device, such that websites can trade off resources for an improved user experience.