Minor performance improvement on page load
authorAlexander Ebert <ebert@woltlab.com>
Thu, 19 Oct 2017 18:47:57 +0000 (20:47 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 19 Oct 2017 18:47:57 +0000 (20:47 +0200)
commit068cf48a9e7da544253953e2d3adfff048b8d3dd
treeab74e4a79c62f41849ded5db9bc523cd93bdeed1
parente40c37828a72252e4ac63a5df82d7799f3684a47
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
wcfsetup/install/files/js/WoltLabSuite/Core/Date/Time/Relative.js