From aae24de78bd42aa338f49e1ef0b245ad723caa6f Mon Sep 17 00:00:00 2001 From: Marcel Hellkamp Date: Thu, 20 Jul 2023 10:44:40 +0200 Subject: [PATCH] Skip updates while the tab/window is not visible Pause updates while the window is minimized or the tab is in the background, but immediately continue updating once the wall is visible again. This should avoid a ton of unnecessary requests to servers. --- src/App.vue | 67 ++++++++++++++++++++++++++++++++++++++--------------- 1 file changed, 48 insertions(+), 19 deletions(-) diff --git a/src/App.vue b/src/App.vue index 5fb13ed..b2ef681 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,7 +1,7 @@