We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.
(function(){
var _intervals = [];
var _origSetInterval = window.setInterval;
window.setInterval = function() {
var id = _origSetInterval.apply(window, arguments);
_intervals.push(id);
return id;
};
window.addEventListener('beforeunload', function() {
_intervals.forEach(function(id) { clearInterval(id); });
});
})();