On js I program quite recently and the impression of it is not the most pleasant ... So, from the very beginning.
The project is written on a bunch of php + js. A lot of things are loaded using AJAX. Any buttons, text blocks, pictures, etc. constantly changing + all sorts of redirects are made. One gets the feeling that sometimes js is somehow clumsily loaded, and, therefore, sloppy works ... Tell me, how much can this correspond to the truth? Or nothing to blame the mirror, it's all about mistakes? I really do not understand what is the cause of this or that error. They appear completely unforeseen and at random times. How can I improve the stability of work?