
Since 2011, a small JavaScript feature has quietly allowed websites to
detect when you're actively viewing a tab.
Originally meant for pausing videos or saving battery, it's now used by test platforms to catch cheaters switching tabs or becoming inactive.
In just a few lines of code,
any website can know when you're paying attention — or not.