If you're using Date.prototype.toLocaleString, please look into using Intl.DateTimeFormat instead for better performance. Here's a real world example of such a change: https://github.com/ojanvafai/make-time/commit/c792eea103d11b202a489da5b2914af310d328df … And as always, measure your improvements.
-
Show this thread
Replying to @_gsathya
Easier to remember: treat toLocaleString as legacy if a more powerful Intl.*Format API for your use case is available. 
0 replies
1 retweet
5 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.