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
* Transforms <time> elements on init and binds event listeners.
*/
setup: function() {
- this._refresh();
-
new Repeating(this._refresh.bind(this), 60000);
DomChangeListener.add('WoltLabSuite/Core/Date/Time/Relative', this._refresh.bind(this));