WebHID is enabled inside dedicated worker contexts. This allows developers to perform heavy I/O and processing of data from a HID device on a separate thread to reduce the performance impact on the main thread.
By combining the capabilities of WebHID and dedicated workers, web developers can minimize input latency and ensure a smooth user experience, even with the complexities of specialized gaming hardware.
Samples: https://webhid-worker.glitch.me
Explainers: https://github.com/WICG/webhid/pull/121