© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Ibrahim Tanyalcin
{intrst:"Scnc&Art",msc:"admin@MutaFrame",strive:"Experiment&Learn",loves:"ES5",hates:"bandwagon",lang:"Javascript",twttr:"@ibrhmTanyalcin"}
welcome to <code>requestAnimationFrame</code>. if you cannot give away from <code>setTimeout</code>, consider at least checking <code>document.hidden</code>.
I'm sorry, I don't understand.
use window.requestAnimationFrame instead of setTimeout, because it is aware of the documents state.
Emmanuel
This will be incredibly helpful, thank you