the page took a long time to respond google chrome [closed]

-4

Good afternoon, I have a web application that sometimes the chrome seems to hang and I get this message the page took a long time to respond according to the image. Other sites that I browse also get this error, does it have to be with the application? Firefox never happens like this.

    
asked by anonymous 21.09.2017 / 17:36

2 answers

1

This is probably caused due to too long javascript code execution in the browser's eyes.

  • There may be a request waiting for a response from a server;
  • The javascript code may have entered an infinite loop;

I recommend waiting for a time that you think is ideal. If you have access to the source code of the page, consider revalidating the code to see if it has issues (such as those cited above). If not, contact the owner / administrator and describe this problem.

    
21.09.2017 / 17:42
0

This can be caused by extremely long loops within your code or extremely long operations. So if you have a code that might cause an infinite loop, creating many variables in each iteration can be the cause. This is something that has to be parsed from the code. You can use the chrome debugging tool to track the processes and try to optimize it.

    
21.09.2017 / 19:15