I don’t know how to describe it correctly ... when you click on a link, the site uploads content to the div, there are pictures in this content that increase when you click (fancybox), but they don’t work (js must be connected inside). I connect js - everything works, but after several clicks on the links the site starts to blunt (hangs when you click on the link). As I understand it, js accumulates and the browser can not cope.

What do you advise to do?

  • Somewhere there is a loop that loads the processor. - Oleg
  • If the site is in public - give the link - Zowie

1 answer 1

Look at the closure of all Timeouts, when processing an AJAX request, you usually put a Timeout to catch not connecting to the server, maybe you do not reset them and because of this javascript "Accumulates". In any case, it eats CPU time.

If you want something more specific - write your code.