Pergunta de entrevista da empresa TP

The calls to certain api, are not returning the request quickly, how would you solve it and debug it? Are not rendering web components quickly, how would you solve it or how would you look for the cause of this problem?