This code snippet wasn't working with the argument `document`, but it worked with `document.body`. https://github.com/bahmutov/code-snippets/blob/master/ng-idle-apply-timing.js