From 068cf48a9e7da544253953e2d3adfff048b8d3dd Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 19 Oct 2017 20:47:57 +0200 Subject: [PATCH] Minor performance improvement on page load Relative timestamps are pre-computed on the server-side as of WSC 3.1, making it unnecessary to refresh them on load. Instead we can get away by performing it on the first significant DOM change or using the once-per-minute refresh. On averge this saves around 5-10ms on init --- .../install/files/js/WoltLabSuite/Core/Date/Time/Relative.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Time/Relative.js b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Time/Relative.js index 7d1cc8bfaa..dbf6289589 100644 --- a/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Time/Relative.js +++ b/wcfsetup/install/files/js/WoltLabSuite/Core/Date/Time/Relative.js @@ -22,8 +22,6 @@ define(['Dom/ChangeListener', 'Language', 'WoltLabSuite/Core/Date/Util', 'WoltLa * Transforms