>> This is a very dangerous precedent. If this is really profitable, the browser will soon hang on half of the sites, even if only a few tabs are open. This will lead to the fact that browsers will limit the load on the processor on the part of the active page scripts at the level of percentage units, and the background - at the level of tenths or even hundreds of percent, depending on how many of them are open. This in turn will lead to the transition from scripts to some alternative technologies, such as those that cannot be used for mining. In general, a lot of inconvenience for users and a lot of unnecessary work for programmers.
It would be great if browsers had settings to limit the use of CPU and RAM for pages even unrelatively miners, just so that site owners start thinking about the performance of their work.