Rippling Interview Question

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