Simple question:
Is there some way, using Angular or plain Javascript, to tell if my web page is being viewed right now?
I am using an API that allows a limited number of calls per month. In order to minimize the amount of calls, I'd like to update my web page 4 times/min but only if the page is being viewed at this very moment.