Hi, try using window.addEventListener("pagehide", function() { currentLoop.pause();});window.addEventListener("pageshow", function() { currentLoop.play();});it handles browser hide and show, but doesn't handle tab switching. The answer is based on safari documentation https://developer.apple.com/library/ios/documentation/AppleApplications/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html