Optimizing the frontend of the website