Optimizing front-end interactive experience