mirror of
https://github.com/discourse/discourse.git
synced 2024-12-03 20:40:13 +08:00
d23c0c06c3
- prefers insertAdjacentHTML over innerHTML as it's much faster in this case (about 5x) - memoizes tz.guess() - memoizes list of timezones - inlines template - applies main element class in one pass All in all for a very edge case of about 80 dates it should be faster of about 15/20ms. |
||
---|---|---|
.. | ||
discourse-local-dates.js.es6 |