DEV Community

Discussion on: Should Frontend Devs Care About Performance??

Collapse
 
supportic profile image
Supportic

Due to Javascript's JIT compiler it's hard to optimize it with a predictable increase in performance. You can't know when the compiler flags a Funktion as hot. But you can help the compiler i.e. if you don't mix datatypes too often or declare variables outside of the loop instead of letting allocation happening inside. Still very marginal performance outcome.
I would put more effort into DOM manipulation if you use pure JS without react and Co.

Some comments have been hidden by the post's author - find out more