From 0edcfdee33f55866f606c23ec0e0cbb68c211a1e Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 21 Nov 2017 12:26:25 +0100 Subject: [PATCH] icinga/ui.js: don't spend time for UI debug... ...while not being shown. fixes #3115 --- public/js/icinga/ui.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/js/icinga/ui.js b/public/js/icinga/ui.js index 4135f1516..46e8d2c0d 100644 --- a/public/js/icinga/ui.js +++ b/public/js/icinga/ui.js @@ -354,6 +354,9 @@ }, refreshDebug: function () { + if (! this.debug) { + return; + } var size = this.getDefaultFontSize().toString(); var winWidth = $( window ).width();