Optimize front-end for mobile