front-end optimization