tangentially, you also cannot detect the number of thread-able cores for tweaking webworker spawns
That's on my list of upcoming week-end projects: start some highly parallelizable task with an increasing number of workers, returns the number that works best.