From: Alexander Ebert Date: Thu, 19 Oct 2017 18:47:57 +0000 (+0200) Subject: Minor performance improvement on page load X-Git-Tag: 3.1.0_Beta_2~16 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=068cf48a9e7da544253953e2d3adfff048b8d3dd;p=GitHub%2FWoltLab%2FWCF.git 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 --- 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