PureCode Software interview question

How do you optimize the performance of a full stack application?