Does exist an event for when the browser get focus?
-
I had in my index page a table which I want to keep refreshing every 1 minute or so, but it is a waste execute my ajax request when the page is not been displayed in the screen. Has Quasar or Vue a way to tell me if the browser is at the front of my OS an the tab displayed is my page?
-
you could look at this:
https://github.com/stefanodotit/vue-page-visibility-awesome
https://github.com/Yuliang-Lee/vue-visibility-changeall using the
Page Visibility API
:
https://www.w3.org/TR/page-visibility/ -