mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 08:53:41 +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. |
||
---|---|---|
.. | ||
assets | ||
config | ||
lib/discourse_local_dates | ||
spec | ||
test/javascripts | ||
plugin.rb |