Use functions instead of strings as the argument of setTimeout() and setInterval()
Functions or character strings can be passed as arguments to SetTimeout() and setInterval(). In keeping with the previous best practice, using eval() and thus passing character strings is not recommended. Furthermore, if the argument passed is a string, it has to be evaluated by the interpreter before being converted into code. On the other hand, if this argument is a function or a reference to a function, no evaluation is needed, reducing CPU usage.
Use performance-orientated forks of applications
Open-source software is often forked for better performance. Performance is usually improved by reducing the resources consumed. Consequently, if an optimized fork exists with sufficient technical and functional scope for your project, you should utilize it.