setTimeout(()=>{
console.log('done')
}, 1000)
The code above will print logs after 1 second.But when the webpage is in background, it will print after about 10 seconds. It causes a lot of problems.
So, are there any solutions can prevent Chrome from throttling my timers?