4 ms·
Trying to optimize for browsers is an abyss. There's a handful of really unintuitive behavior because js is slow but modern browsers have put in herculean effor
by preommr 6y ago
Trying to optimize for browsers is an abyss. There's a handful of really unintuitive behavior because js is slow but modern browsers have put in herculean efforts to optimize the engines rather than tackle the language.
It's kind of pointless to even try and optimize for things like this because there's a very good chance that it can change in the news few weeks/months/years.
- colordrops 6y agoThe Chrome team's direct advice is to not optimize this way, and rather to write as idiomatically as possible, because it is likely that they are aware of the issue (e.g. it's a new language feature and they are collecting usage data before doing optimizations), and it will improve with time.