Time your JavaScript code. Find the worst-performing parts. Make everything better.