Mainstack interview question

how to optimize frontend apps