4 ms·
They don’t need to detect the number of cores, although hardwareConcurrency is right there, but rather simply to ask the browser what it supports: https://deve
by acdha 3y ago
They don’t need to detect the number of cores, although hardwareConcurrency is right there, but rather simply to ask the browser what it supports:
https://developer.mozilla.org/en-US/docs/Web/API/Media_Capabilities_API https://developer.mozilla.org/en-US/docs/Web/API/Media_Capab...
That way you can fall back for anything too old or weird to support that API, and if the vendor complains there’s a simple response: implement the standard.