I can image websites progressively enhancing with effects using code such as:
const minCpuLevel = 2;
if (navigator.cpuPerformance > minCpuLevel) {
// add sparkles
}
But for any devices with unknown value of 0, this would not be enabled, unless explicitly tested for.
Should the Unknown special value be some large constant or Number.MAX_SAFE_INTEGER?
I can image websites progressively enhancing with effects using code such as:
But for any devices with unknown value of 0, this would not be enabled, unless explicitly tested for.
Should the Unknown special value be some large constant or Number.MAX_SAFE_INTEGER?