Easygenerator Interview Question

How to optimize frontend code? They asked in web security