6 Tips for optimizing your website with JavaScript