front-end performance optimization