I think that micro-optimizations are generally not very important, unless you're writing extremely computationally tasking code. Why? Because computers can complete thousands of operations in extremely short times, and most users won't even notice or see the effects of most micro-optimizations.
There are some cases, of course, when software should be optimized. For example, if you have very computationally tasking code that is repeating many times, optimization would probably be a good idea to save energy and (if code is being run client-side) CPU usage.
I hope this helps!