Rippling interview question

What are some different things we could do to optimize Javascript performance?