My task is to upload content from another page. I needed to add the callback function. After adding it, performance problems started.
Here is the code: $(into).load(url + " " + from, function (){start_page();console.log('CALLBACK');});
It seems nothing out of the ordinary, however, console.log('CALLBACK'); helped me understand that callback is called in a strange way. The first time this function is called 1 time, the second - 2 times, 3 - 5 times and so more and more.
Have any suggestions?